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.
3504745159d79c585e4f7df8df76aa10?d=identicon&s=25 Ingo Weiss (ingoweiss)
on 2007-06-07 19: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
10c122532c00465b809dbf9dc35806a7?d=identicon&s=25 Paolo Negri (Guest)
on 2007-06-07 20:57
(Received via mailing list)
I think is a wanted change.

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

Paolo
3504745159d79c585e4f7df8df76aa10?d=identicon&s=25 Ingo Weiss (ingoweiss)
on 2007-06-08 14:22
Thanks, Paolo! This thread explains it!

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