rails singular resource still plural?

Yes, that’s how it’s supposed to be. Quote from the Rails Guide on Routing:

Because you might want to use the same controller for a singular route
(/account) and a plural route (/accounts/45), singular resources map
to plural controllers.

http://edgeguides.rubyonrails.org/routing.html#singular-resources

Leave a Comment