RESTful convention is this:
Table: plural
Controller: plural
Model: singular

So for example:

table: apples
controller: ApplesController
model: Apple

On Feb 23, 2007, at 12:37 PM, Javan Makhmali wrote:

I'm pretty new to rails, and am a little confused about the proper naming convention for controllers. The 2nd edition of the Agile books says to name them singularly. So, for my 'items' table I would have an item_controller.rb file containing an ItemController class.

However, running 'script/generate scaffold item' generates an items_controller.rb file with an ItemsController class.


_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

Reply via email to