|
1 | 1 | Comedy::Application.routes.draw do
|
2 |
| - resources :videos |
3 | 2 |
|
| 3 | + resources :videos |
4 | 4 | resources :gigs
|
5 |
| - |
6 | 5 | resources :tours
|
7 |
| - |
8 | 6 | resources :comedians
|
9 | 7 |
|
10 | 8 | devise_for :users
|
11 | 9 |
|
12 |
| - # The priority is based upon order of creation: |
13 |
| - # first created -> highest priority. |
14 |
| - |
15 |
| - # Sample of regular route: |
16 |
| - # match 'products/:id' => 'catalog#view' |
17 |
| - # Keep in mind you can assign values other than :controller and :action |
18 |
| - |
19 |
| - # Sample of named route: |
20 |
| - # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase |
21 |
| - # This route can be invoked with purchase_url(:id => product.id) |
22 |
| - |
23 |
| - # Sample resource route (maps HTTP verbs to controller actions automatically): |
24 |
| - # resources :products |
25 |
| - |
26 |
| - # Sample resource route with options: |
27 |
| - # resources :products do |
28 |
| - # member do |
29 |
| - # get 'short' |
30 |
| - # post 'toggle' |
31 |
| - # end |
32 |
| - # |
33 |
| - # collection do |
34 |
| - # get 'sold' |
35 |
| - # end |
36 |
| - # end |
37 |
| - |
38 |
| - # Sample resource route with sub-resources: |
39 |
| - # resources :products do |
40 |
| - # resources :comments, :sales |
41 |
| - # resource :seller |
42 |
| - # end |
43 |
| - |
44 |
| - # Sample resource route with more complex sub-resources |
45 |
| - # resources :products do |
46 |
| - # resources :comments |
47 |
| - # resources :sales do |
48 |
| - # get 'recent', :on => :collection |
49 |
| - # end |
50 |
| - # end |
51 |
| - |
52 |
| - # Sample resource route within a namespace: |
53 |
| - # namespace :admin do |
54 |
| - # # Directs /admin/products/* to Admin::ProductsController |
55 |
| - # # (app/controllers/admin/products_controller.rb) |
56 |
| - # resources :products |
57 |
| - # end |
58 |
| - |
59 |
| - # You can have the root of your site routed with "root" |
60 |
| - # just remember to delete public/index.html. |
61 |
| - root :to => "comedians#index" |
| 10 | + root :to => "map#show" |
62 | 11 |
|
63 | 12 | # See how all your routes lay out with "rake routes"
|
64 | 13 |
|
65 |
| - # This is a legacy wild controller route that's not recommended for RESTful applications. |
66 |
| - # Note: This route will make all actions in every controller accessible via GET requests. |
67 |
| - # match ':controller(/:action(/:id(.:format)))' |
68 | 14 | end
|
0 commit comments