comparison config/routes.rb @ 165:5af9b537db86

Unbreak \everything/ - simplify routing, no more split hackery - fix user lookup and differentiate between id and name lookup
author nanaya <me@nanaya.pro>
date Fri, 03 Aug 2018 02:31:25 +0900
parents d5a0d66ee457
children
comparison
equal deleted inserted replaced
164:59a4645fd24c 165:5af9b537db86
1 Rails.application.routes.draw do 1 Rails.application.routes.draw do
2 root "tweets#index" 2 root "tweets#index"
3 3
4 get "*id" => "tweets#show", :defaults => { :format => :atom }, :as => "tweet" 4 get ":id/:name" => "tweets#show", :defaults => { :format => :atom }, :as => "tweet"
5 get ":name" => "tweets#redirect"
5 end 6 end