Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 70 lines (55 sloc) 2.073 kb
8c28617 @leereilly Skeleton rails app
authored
1 Hammr::Application.routes.draw do
2581c8a @leereilly Added protected area
authored
2 get "protected_content/index"
3
27a0731 @leereilly Added home controller
authored
4 get "home/index"
5
a7c50b2 @leereilly Confirmation kludge
authored
6 as :user do
7 match '/user/confirmation' => 'confirmations#update', :via => :put, :as=> :update_user_confirmation
8 end
9
10 devise_for :users, :controllers => { :confirmations => "confirmations" }
11
edb753a @leereilly Change env/conf and added flash msgs
authored
12 root :to => "home#index"
8c28617 @leereilly Skeleton rails app
authored
13 # The priority is based upon order of creation:
14 # first created -> highest priority.
15
16 # Sample of regular route:
17 # match 'products/:id' => 'catalog#view'
18 # Keep in mind you can assign values other than :controller and :action
19
20 # Sample of named route:
21 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
22 # This route can be invoked with purchase_url(:id => product.id)
23
24 # Sample resource route (maps HTTP verbs to controller actions automatically):
25 # resources :products
26
27 # Sample resource route with options:
28 # resources :products do
29 # member do
30 # get 'short'
31 # post 'toggle'
32 # end
33 #
34 # collection do
35 # get 'sold'
36 # end
37 # end
38
39 # Sample resource route with sub-resources:
40 # resources :products do
41 # resources :comments, :sales
42 # resource :seller
43 # end
44
45 # Sample resource route with more complex sub-resources
46 # resources :products do
47 # resources :comments
48 # resources :sales do
49 # get 'recent', :on => :collection
50 # end
51 # end
52
53 # Sample resource route within a namespace:
54 # namespace :admin do
55 # # Directs /admin/products/* to Admin::ProductsController
56 # # (app/controllers/admin/products_controller.rb)
57 # resources :products
58 # end
59
60 # You can have the root of your site routed with "root"
61 # just remember to delete public/index.html.
62 # root :to => "welcome#index"
63
64 # See how all your routes lay out with "rake routes"
65
66 # This is a legacy wild controller route that's not recommended for RESTful applications.
67 # Note: This route will make all actions in every controller accessible via GET requests.
68 # match ':controller(/:action(/:id(.:format)))'
69 end
Something went wrong with that request. Please try again.