Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 107 lines (89 sloc) 2.678 kB
b1c91c0 @rwdaigle Upgrade to Rails 3.1
authored
1 Ptls::Application.routes.draw do
6b1df07 @rwdaigle Initial commit of ptls from previous work
authored
2
b1c91c0 @rwdaigle Upgrade to Rails 3.1
authored
3 root :to => 'sessions#start'
6b1df07 @rwdaigle Initial commit of ptls from previous work
authored
4
b1c91c0 @rwdaigle Upgrade to Rails 3.1
authored
5 resources :users
6 resource :session
2337162 @rwdaigle Fix routes for Rails3 style member actions. Add subjects old controller
authored
7 resources :reviews do
8 put 'review', :on => :member
9 put 'shift', :on => :collection
10 end
11 resources :learnings do
12 put 'review', :on => :member
13 end
b1c91c0 @rwdaigle Upgrade to Rails 3.1
authored
14 resources :associations
6b1df07 @rwdaigle Initial commit of ptls from previous work
authored
15
2337162 @rwdaigle Fix routes for Rails3 style member actions. Add subjects old controller
authored
16 resources :units do
17 member do
18 get 'edit_question'
19 get 'edit_answer'
20 end
b1c91c0 @rwdaigle Upgrade to Rails 3.1
authored
21 resources :learnings
6b1df07 @rwdaigle Initial commit of ptls from previous work
authored
22 end
b1c91c0 @rwdaigle Upgrade to Rails 3.1
authored
23
2337162 @rwdaigle Fix routes for Rails3 style member actions. Add subjects old controller
authored
24 resources :subjects do
25 member do
26 get 'learn'
27 get 'review'
28 get 'quiz'
02bfebd @rwdaigle Rework process method ownership. Add ability to trigger subject proce…
authored
29 end
30 resources :units do
a3bc082 @rwdaigle Move unit queueing to units controller
authored
31 get 'queue', :on => :collection
2337162 @rwdaigle Fix routes for Rails3 style member actions. Add subjects old controller
authored
32 end
8782a22 @rwdaigle Fix routes
authored
33 resources :learnings do
34 get 'today', :on => :collection
35 end
36 resources :reviews do
37 collection do
38 get 'missed'
39 put 'shift'
40 end
41 end
6b1df07 @rwdaigle Initial commit of ptls from previous work
authored
42 end
c4d73c6 @rwdaigle Inbound email processing
authored
43
44 resources :emails, :only => [:create]
6b1df07 @rwdaigle Initial commit of ptls from previous work
authored
45
46 # Niceities
b1c91c0 @rwdaigle Upgrade to Rails 3.1
authored
47 match 'login', :to => 'sessions#new'
48 match 'logout', :to => 'sessions#destroy'
49
50 # The priority is based upon order of creation:
51 # first created -> highest priority.
52
53 # Sample of regular route:
54 # match 'products/:id' => 'catalog#view'
55 # Keep in mind you can assign values other than :controller and :action
56
57 # Sample of named route:
58 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
59 # This route can be invoked with purchase_url(:id => product.id)
60
61 # Sample resource route (maps HTTP verbs to controller actions automatically):
62 # resources :products
63
64 # Sample resource route with options:
65 # resources :products do
66 # member do
67 # get 'short'
68 # post 'toggle'
69 # end
70 #
71 # collection do
72 # get 'sold'
73 # end
74 # end
75
76 # Sample resource route with sub-resources:
77 # resources :products do
78 # resources :comments, :sales
79 # resource :seller
80 # end
81
82 # Sample resource route with more complex sub-resources
83 # resources :products do
84 # resources :comments
85 # resources :sales do
86 # get 'recent', :on => :collection
87 # end
88 # end
89
90 # Sample resource route within a namespace:
91 # namespace :admin do
92 # # Directs /admin/products/* to Admin::ProductsController
93 # # (app/controllers/admin/products_controller.rb)
94 # resources :products
95 # end
96
97 # You can have the root of your site routed with "root"
98 # just remember to delete public/index.html.
99 # root :to => 'welcome#index'
100
101 # See how all your routes lay out with "rake routes"
102
103 # This is a legacy wild controller route that's not recommended for RESTful applications.
104 # Note: This route will make all actions in every controller accessible via GET requests.
105 # match ':controller(/:action(/:id(.:format)))'
6b1df07 @rwdaigle Initial commit of ptls from previous work
authored
106 end
Something went wrong with that request. Please try again.