Mercurial > rsstweet
comparison 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 |
comparison
equal
deleted
inserted
replaced
54:e01fb1aa55a3 | 55:8f68ca606099 |
---|---|
3 # See how all your routes lay out with "rake routes". | 3 # See how all your routes lay out with "rake routes". |
4 | 4 |
5 # You can have the root of your site routed with "root" | 5 # You can have the root of your site routed with "root" |
6 root "tweets#index" | 6 root "tweets#index" |
7 | 7 |
8 get "*id" => "tweets#show", :defaults => { :format => :atom } | 8 get "*id" => "tweets#show", :defaults => { :format => :atom }, :as => "tweet" |
9 | 9 |
10 # Example of regular route: | 10 # Example of regular route: |
11 # get 'products/:id' => 'catalog#view' | 11 # get 'products/:id' => 'catalog#view' |
12 | 12 |
13 # Example of named route that can be invoked with purchase_url(id: product.id) | 13 # Example of named route that can be invoked with purchase_url(id: product.id) |