view config/routes.rb @ 158:74422bae017d

Always use canonical id and turn cache time generator a class method
author nanaya <me@nanaya.pro>
date Fri, 03 Aug 2018 01:38:53 +0900
parents d5a0d66ee457
children 5af9b537db86
line wrap: on
line source

Rails.application.routes.draw do
  root "tweets#index"

  get "*id" => "tweets#show", :defaults => { :format => :atom }, :as => "tweet"
end