Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (40 sloc) 2.135 kb
e9b3c0a @NelleV moved the branch/grouping to the trunk
NelleV authored
1 ActionController::Routing::Routes.draw do |map|
2 # The priority is based upon order of creation: first created -> highest priority.
3
4 # Sample of regular route:
5 # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
6 # Keep in mind you can assign values other than :controller and :action
7
8 # Sample of named route:
9 # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
10 # This route can be invoked with purchase_url(:id => product.id)
11
12 # Sample resource route (maps HTTP verbs to controller actions automatically):
13 # map.resources :products
14
15 # Sample resource route with options:
16 # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
17
18 # Sample resource route with sub-resources:
19 # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
20
21 # Sample resource route with more complex sub-resources
22 # map.resources :products do |products|
23 # products.resources :comments
24 # products.resources :sales, :collection => { :recent => :get }
25 # end
26
27 # Sample resource route within a namespace:
28 # map.namespace :admin do |admin|
29 # # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
30 # admin.resources :products
31 # end
32
33 # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
34 # map.root :controller => "welcome"
35
36 # See how all your routes lay out with "rake routes"
37
38 # Install the default routes as the lowest priority.
23115ca - Simplify named routes
Severin Gehwolf authored
39 map.root :controller => "main", :action => "login"
40 map.connect 'main', :controller => 'main', :action => 'index'
cd7e355 Add about page and remove beta from logo(s)
Severin Gehwolf authored
41 map.connect 'main/about', :controller => 'main', :action => 'about'
2cbad94 Fix "logout" route
Severin Gehwolf authored
42 map.connect 'main/logout', :controller => 'main', :action => 'logout'
38c9571 @mikeconley Merging in changes from 0.6
mikeconley authored
43
44 # API routes
45 map.namespace :api do |api|
46 api.resource :test_results
47 end
48 #map.connect 'api/test_results/:action/:id', :controller => 'test_results', :namespace => 'api'
e9b3c0a @NelleV moved the branch/grouping to the trunk
NelleV authored
49
38c9571 @mikeconley Merging in changes from 0.6
mikeconley authored
50 # Generic connects
ef3ad8a Authentication/Authorization change
Severin Gehwolf authored
51 map.connect 'main/:controller/:action/:id'
e9b3c0a @NelleV moved the branch/grouping to the trunk
NelleV authored
52 end
Something went wrong with that request. Please try again.