Forum: Ruby on Rails Singular resource controller naming convention changed?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ingo W. (Guest)
on 2007-06-07 21:03
Hi,

singular resources used to assume singular controller naming, as in:

map.resources :session
GET    /session/ {:action=>"show", :controller=>"session"}

did this change in edge? My routes broke after updating, and now I get:

GET    /session/ {:action=>"show", :controller=>"sessions"}

('sessions' instead of 'session')

Was that a decision made, or might this be a bug?

Ingo
Paolo N. (Guest)
on 2007-06-07 22:57
(Received via mailing list)
I think is a wanted change.

http://groups.google.com/group/rubyonrails-core/br...

Paolo
Ingo W. (Guest)
on 2007-06-08 16:22
Thanks, Paolo! This thread explains it!

Ingo
This topic is locked and can not be replied to.