Hi,
I’m trying to accomplices this with REST
http://localhost:3000/admin/projects/11/tasks/assigns/:user_id
This is my route config.
map.namespace :admin do |admin|
admin.resources :projects, :has_many => {:tasks => {:assigns =>
:post}}
admin.resources :tasks
end
But I’m not getting it right?
Can anyone show me the correct way of doing that
I also tried:
admin.resources :projects, :has_many => {:tasks, :collection =>
{:assigns => :post}}
Thanks for help.