I am using rails 1.2.6 and I'm trying to define a RESTified route that
will work for a nested resource. I have a permission resource that I
want to be nested into all my other resources. If I wanted to nest
permission specifically for say my customer resource then that would
map.resources :customers do |customer|
and this will give me url methods such as permissions_url(@customer),
permission_url(@customer, :permission_id) etc.
However what I want to achieve is a generic route definition that will
give me this functionality across all my resources. Something possibly
map.resources :any do |any|
where any can be any resource and have url methods like
Any ideas will be appreaciated. Thanks.