Greetings from the low end of the learning curve. I have installed all
the prerequisites on Win32, including a lite MySQL database with a
table in it called Inventory.
Then I run this command line…
ruby script/generate ajax_scaffold Inventory
…and I get this error message:
error Before updating scaffolding from new DB schema, try creating
a table for your model (Inventory)
So I read log/development.log, and it contains this:
Error: Table ‘rails_development.inventories’ doesn’t exist
The system is inexplicably pluralizing my table name. Am I using the
system wrong, or is this a false “feature”?
Can I fix it by adding a view called ‘inventories’? Or must I rename the
And how, in general, can Rails present data views that don’t have the
same shape as the target database schema? Such schemas should be
normalized beyond recognition…