Hello all,
[snip]
So basically, do i only have to use plurals for the table names, and can therefore delete any other plural controllers/models/anything else, or do I need both?
Thanks, and I hope this makes some kind of sense.
Rails will let you do anything, but the convention is this given "foo"
SQL Table: foos Controller: app/controllers/foo_controller.rb (class FooController) Model: app/controllers/foo_model.rb (class Foo) Views: app/views/foo
Take a look at the output of the following commands:
./script/generate controller ./script/generate model
These will setup the necessary stub files for you to fill out (and set the right plurization for you)
So you could do say...
./script/generate controller foo ./script/generate model foo
and you'd end up with the filenames I mention above.
-philip