non crud actions in nested resourceful routes

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

fyi, I did get it "old" way

  map.resources :projects do |project|     project.resources :memberships, :member => { :foo => :get }     project.resources :pages end