hi there,
I am trying to create nested routes
i have controller explores without model. (i.e this controller dont
have model)
And then there are other two.
so i am trying to create routes like this .
map.resources :explores do |explore|
explore.resources :categories do |category|
category.resources :hobbies
end
end
but this creating routes for explore_category_hobbies_path
/explores/explore_id/category/category_id/hobbies etc.
I dont want explore_id into routes
i want it to create the path like this
/explores/category/category_id/hobbies
Can anyone help me.
--
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
-~----------~----~----~----~------~----~------~--~---