Nested routes without id

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.

map.resource :explore
i think leaving the ā€œsā€ off resources will do what you want

On Apr 28, 9:11 pm, Shardul M. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs