map.resources :events do |event|
event.resources :invitations
event.resources :personalized_invitations
event.resources :questions
end
Now I want to add to the event resource other non resourceful routes.
In my case, this new route will be for my notification controller. Per
se notifications belongs to an event but are not resources so I don't
want to use:
I would like the notification controller to behave as the default
rails routing but within the event scope. Something like this:
event.connect ':controller/:action/:id'
Sorry but, how can then you relate this map.resources :events with the
previous map.notification named routes created?
I mean, you are not mixing. You are just creating a named route with the
same first path as map.resources :events.