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

**URL:** <https://www.ruby-forum.com/t/how-will-rails-2-0-build-prefixs-into-nexted-paths/120396>\
**Category:** Rails\
**Created:** [November 16, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/how-will-rails-2-0-build-prefixs-into-nexted-paths/120396 "2007-11-16T15:01:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 16, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/how-will-rails-2-0-build-prefixs-into-nexted-paths/120396/1 "2007-11-16T15:01:53Z")

</div>

I’ve recently observed a reply by David Black (  
[http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/fea4376838ac9396?hl=en](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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 16, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/how-will-rails-2-0-build-prefixs-into-nexted-paths/120396/2 "2007-11-16T15:41:11Z")

</div>

Hi –

On Fri, 16 Nov 2007, removed\_email\_address@domain.invalid 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 🙂 (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](http://www.rubypal.com) for details!
