fyi, I did get it "old" way
map.resources :projects do |project|
project.resources :memberships, :member => { :foo => :get }
project.resources :pages
end
On Oct 8, 12:12 pm, linojon
<lino...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> hi,
>
> lets say I have in routes.rb
>
> map.resources :projects, :has_many => [:memberships, :pages]
>
> and i want to add non-CRUD actions to memberships. How do I do that?
> I''m aware of :member => and :collection => but
I''m not sure how to
> apply those on nested resources.
>
> thanks
> linoj
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---