forked from dalyons/redmine-todos-scrum-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.rb
25 lines (16 loc) · 1.12 KB
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#custom routes for this plugin
#map.with_options :controller => 'todos' do |todos_routes|
#todos_routes.new_issue_todo 'projects/:project_id/issues/:issue_id/todos/:parent_id/new', :action => 'new'
#todos_routes.new_project_todo 'projects/:project_id/todos/:parent_id/new', :action => 'new'
#todos_routes.connect 'projects/:project_id/issues/:issue_id/todos/:parent_id/new(.:format)', :action => 'new'
#todos_routes.connect "projects/:project_id/todos/:action/:id"
#todos_routes.connect "projects/:project_id/todos/:action/:id.:format"
#end
map.resources :todos, :name_prefix => 'project_', :path_prefix => '/projects/:project_id',
:member => {:toggle_complete => :post }, :collection => {:sort => :post}
#map.resources :mytodos, :name_prefix => 'project_', :path_prefix => '/projects/:project_id'
map.with_options :controller => 'mytodos' do |mytodos_routes|
mytodos_routes.new_personal_todo 'mytodos/:parent_id/new', :action => 'new'
mytodos_routes.connect 'mytodos/:parent_id/new.:format', :action => 'new'
end
# map.resources :comments, :path_prefix => '/articles/:article_id'