Kwestie (master) :  summary log tree commit diff
path: root/config/routes.rb blob: 0bef231f76b238250d50fed004538ec34f11ebcd
1ActionController::Routing::Routes.draw do |map|
2 map.resources :attachments
3
4
5 map.resources :permalinks
6 map.resources :comments
7 map.resources :issues
8 map.resources :users
9
10 map.resources :track
11
12 # The priority is based upon order of creation: first created -> highest priority.
13
14 # Sample of regular route:
15 # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
16 # Keep in mind you can assign values other than :controller and :action
17
18 # Sample of named route:
19 # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
20 # This route can be invoked with purchase_url(:id => product.id)
21
22 # You can have the root of your site routed by hooking up ''
23 # -- just remember to delete public/index.html.
24 # map.connect '', :controller => "welcome"
25
26 map.open_id_complete 'session', :controller => "sessions", :action => "create", :requirements => { :method => :get }
27 map.resource :session
28
29 map.activate '/activate/:activation_code', :controller => 'users', :action => 'activate'
30
31 map.signup '/signup', :controller => 'users', :action => 'new'
32 map.login '/login', :controller => 'sessions', :action => 'new'
33 map.logout '/logout', :controller => 'sessions', :action => 'destroy'
34
35 map.index '', :controller => 'track', :action => 'index'
36
37 map.date 'dates/:year/:month/:day', :controller => 'issues',
38 :action => 'find_by_date',
39 :month => nil, :day => nil,
40 :requirements => { :year => /\d{4}/, :day => /\d{1,2}/, :month => /\d{1,2}/ }
41
42 map.nice_permalink_route 'issue/:year/:month/:day/:permalink', :controller => 'issues',
43 :action => 'find_by_permalink',
44 :requirements => { :year => /\d{4}/, :day => /\d{2}/, :month => /\d{2}/ }
45
46 map.full_permalink_route 'issue/:year/:month/:day/:permalink/:id', :controller => 'issues',
47 :action => 'find_by_permalink_id',
48 :requirements => { :year => /\d{4}/, :day => /\d{2}/, :month => /\d{2}/ }
49
50
51 # Allow downloading Web Service WSDL as a file with an extension
52 # instead of a file named 'wsdl'
53 map.connect ':controller/service.wsdl', :action => 'wsdl'
54
55 # Install the default route as the lowest priority.
56 map.connect ':controller/:action/:id.:format'
57 map.connect ':controller/:action/:id'
58end
59