mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-27 09:34:08 +01:00
Merge branch 'sort_projects_by_todos' of git://github.com/waltercruz/tracks
This commit is contained in:
commit
76d72b54bf
7 changed files with 59 additions and 3 deletions
|
|
@ -28,6 +28,10 @@ ActionController::Routing::Routes.draw do |map|
|
|||
projects.resources :todos, :name_prefix => "project_"
|
||||
end
|
||||
|
||||
map.resources :projects, :collection => {:order => :post, :actionize => :post} do |projects|
|
||||
projects.resources :todos, :name_prefix => "project_"
|
||||
end
|
||||
|
||||
map.resources :todos,
|
||||
:member => {:toggle_check => :put, :toggle_star => :put},
|
||||
:collection => {:check_deferred => :post, :filter_to_context => :post, :filter_to_project => :post}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue