Hi guys,
I have a situation here. I have my project set to no pluralization due
to legacy tables in environment.rb. Now, I have some new tables which
I’m starting to pluralize. When I do a generate a scaffold to this new
table:
script/generate scaffold my_tables table
it seems to work out fine for certain sections like
http://mysite.com/railsapp/new (which also inserts properly to my
database). But when I go to http://mysite.com/railsapp/list, I get an
application error. My logs are:
Processing SpielController#list (for 210.5.98.178 at 2006-07-18
13:56:58) [GET]
Session ID: 0be4d205f811096a827b21209cdc1370
Parameters: {“action”=>“list”, “controller”=>“table”}
ActiveRecord::StatementInvalid (PGError: ERROR: relation “my_table”
does not exist.
Well, my_table really doesn’t exist because the table name is my_tables.
With pluralization not activated in my environment, how can I have rails
see this table?
Thanks,
Bing