Rails Routing from the Outside In — Ruby on Rails Guides: "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. So that, for example, resource :photo and resources :photos creates both singular and plural routes that map to the same controller (PhotosController)."
'via Blog this'
No comments:
Post a Comment