Forum: Ruby on Rails nested restful resources without controller name in the url

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.
Antonio P. (Guest)
on 2007-03-30 22:54
(Received via mailing list)

first, sorry for my english.

i have this resources in routes.rb:

map.resources :artists, :path_prefix => '/music' do |artists|
  artists.resources :albums do |albums|
    albums.resources :tracks

with this i have this type of url's:

my question is if it's possible to hide the controller name in the url
to have url's of type:

if this possible?, breaks somehow the rest philoshopy?

brian.dainton (Guest)
on 2007-03-30 23:41
(Received via mailing list)
Hi Antonio,

I don't have an answer for exactly how to construct the routes w/out
the controller names (sorry), but I read this post on Jamis' blog
recently and thought it might be relevant for you:

- BD
This topic is locked and can not be replied to.