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.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to