Recent Routing changes in edge rails?

user_messages: GET /:user_id/messages/ {:controller=>"messages", :action=>"index"}

This happened between revision 6518 and revision 6654 in edge rails.

Route is defined as:

  map.resources :users do |user|     user.resources :messages, :path_prefix => ':user_id'   end

This is done to prevent namespace classes. If you wish to get the old behavior, you can do :name_prefix => nil.

The preferred way to do what you're doing is now:

  map.resources :users, :has_many => :messages

> map.resources :users, :has_many => :messages

Ahh, thanks, I see it here now:http://dev.rubyonrails.org/changeset/6588

Can you still specify a :path_prefix with the new way (has_many)?

No. If you want to use options outside of the convention, you'll still need to work with a block. The block will remain in place for those (presumably rare) instances.