comparison config/routes.rb @ 38:9e03bbbb1d43

Move static#index to tweet#index.
author edogawaconan <me@myconan.net>
date Thu, 11 Dec 2014 15:47:36 +0900
parents 157f7fd136fc
children 8f68ca606099
comparison
equal deleted inserted replaced
37:81f23f5bf85d 38:9e03bbbb1d43
1 Rails.application.routes.draw do 1 Rails.application.routes.draw do
2 # The priority is based upon order of creation: first created -> highest priority. 2 # The priority is based upon order of creation: first created -> highest priority.
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 "static#index" 6 root "tweets#index"
7 7
8 get "*id" => "tweets#show", :defaults => { :format => :atom } 8 get "*id" => "tweets#show", :defaults => { :format => :atom }
9 9
10 # Example of regular route: 10 # Example of regular route:
11 # get 'products/:id' => 'catalog#view' 11 # get 'products/:id' => 'catalog#view'