Forum: Ruby on Rails Nested routes without id

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
425fc5c8c9e3e3d78e483772afd98ad8?d=identicon&s=25 Shardul Mohite (shardul)
on 2009-04-29 03:11

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

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

Can anyone help me.
Eecd295cdec2454c66e2015036a39408?d=identicon&s=25 Scott Nj (scottnj)
on 2009-04-29 04:27
(Received via mailing list)
map.resource :explore
i think leaving the "s" off resources will do what you want

On Apr 28, 9:11 pm, Shardul Mohite <>
This topic is locked and can not be replied to.