Ading a sort by number of tasks option

This commit is contained in:
Walter Cruz 2008-09-23 17:06:14 -03:00
parent 0673d67b62
commit ee5c730f44
4 changed files with 30 additions and 1 deletions

View file

@ -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}