How will Rails 2.0 build prefix's into nexted paths?

I’ve recently observed a reply by David Black (
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/fea4376838ac9396?hl=en
) where he described that a routing statement like this;

map.resources :projects do |p|
p.resources :iterations, :name_prefix => “projects_”
end
map.resources :iterations

in Rails 2.0 will automatically put in the :name_prefix => “projects”.
As I am going to have to rewrite all routes in a HUGE Rails
application to get ready for 2.0 I’d like to know FOR SURE will this
‘automatic’ prefix be singular or plural?
Thank you,
Kathy

Hi –

On Fri, 16 Nov 2007, [email protected] wrote:

in Rails 2.0 will automatically put in the :name_prefix => “projects”.
As I am going to have to rewrite all routes in a HUGE Rails
application to get ready for 2.0 I’d like to know FOR SURE will this
‘automatic’ prefix be singular or plural?

Singular. But you can’t sue me :slight_smile: (See my answer in the other thread.)

David

–
Upcoming training by David A. Black/Ruby Power and Light, LLC:

  • Advancing With Rails, Berlin, Germany, November 19-22
  • Intro to Rails, London, UK, December 3-6 (by Skills Matter)
    See http://www.rubypal.com for details!