diff config/routes.rb @ 55:8f68ca606099

Add twitter id to the url so it'll be consistent. Not sure if there will be use case of "following this id".
author nanaya <me@myconan.net>
date Fri, 03 Jul 2015 01:17:40 +0900
parents 9e03bbbb1d43
children d5a0d66ee457
line wrap: on
line diff
--- a/config/routes.rb	Sat Jun 27 14:47:28 2015 +0900
+++ b/config/routes.rb	Fri Jul 03 01:17:40 2015 +0900
@@ -5,7 +5,7 @@
   # You can have the root of your site routed with "root"
   root "tweets#index"
 
-  get "*id" => "tweets#show", :defaults => { :format => :atom }
+  get "*id" => "tweets#show", :defaults => { :format => :atom }, :as => "tweet"
 
   # Example of regular route:
   #   get 'products/:id' => 'catalog#view'