So i have a question about naming controllers. Which would be best to use? MyOrder or MyOrders
Is it just the DB which get pluralised?
It's convention to use the plural form for your controllers.
OrdersController -> app/controllers/orders_controller.rb, a model would be Order
If you think about it, when you define a route you most likely use resources :orders in that circumstance. Then Rails knows it's looking for an orders controller.
I hope that helps?
Join 31,353+ developers who get early access to new screencasts, articles, guides, updates, and more.