annotate config/routes.rb @ 88:cf9a9ce2d034

Increase cache timeout to ease up load ;_;
author nanaya <me@myconan.net>
date Tue, 28 Jun 2016 02:38:27 +0900
parents 8f68ca606099
children d5a0d66ee457
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
1 Rails.application.routes.draw do
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
2 # The priority is based upon order of creation: first created -> highest priority.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
3 # See how all your routes lay out with "rake routes".
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
4
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
5 # You can have the root of your site routed with "root"
38
9e03bbbb1d43 Move static#index to tweet#index.
edogawaconan <me@myconan.net>
parents: 19
diff changeset
6 root "tweets#index"
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
7
55
8f68ca606099 Add twitter id to the url so it'll be consistent.
nanaya <me@myconan.net>
parents: 38
diff changeset
8 get "*id" => "tweets#show", :defaults => { :format => :atom }, :as => "tweet"
15
207917e41964 Add tweets~
edogawaconan <me@myconan.net>
parents: 6
diff changeset
9
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
10 # Example of regular route:
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
11 # get 'products/:id' => 'catalog#view'
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
12
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
13 # Example of named route that can be invoked with purchase_url(id: product.id)
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
14 # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
15
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
16 # Example resource route (maps HTTP verbs to controller actions automatically):
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
17 # resources :products
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
18
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
19 # Example resource route with options:
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
20 # resources :products do
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
21 # member do
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
22 # get 'short'
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
23 # post 'toggle'
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
24 # end
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
25 #
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
26 # collection do
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
27 # get 'sold'
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
28 # end
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
29 # end
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
30
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
31 # Example resource route with sub-resources:
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
32 # resources :products do
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
33 # resources :comments, :sales
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
34 # resource :seller
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
35 # end
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
36
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
37 # Example resource route with more complex sub-resources:
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
38 # resources :products do
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
39 # resources :comments
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
40 # resources :sales do
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
41 # get 'recent', on: :collection
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
42 # end
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
43 # end
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
44
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
45 # Example resource route with concerns:
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
46 # concern :toggleable do
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
47 # post 'toggle'
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
48 # end
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
49 # resources :posts, concerns: :toggleable
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
50 # resources :photos, concerns: :toggleable
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
51
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
52 # Example resource route within a namespace:
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
53 # namespace :admin do
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
54 # # Directs /admin/products/* to Admin::ProductsController
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
55 # # (app/controllers/admin/products_controller.rb)
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
56 # resources :products
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
57 # end
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
58 end