Non numeric IDs in member resources

I have a nested resource:

map.resources :posts do |posts|
posts.resources :comments

which generates urls like:


Is there any way to use a “name” or other parameter instead of
params[:id] for posts?. In other words I’d like to have a url like


Is something like resource_hacks my only hope?


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