Software versions
Ruby 1.8.2 (2004-12-25),
Rails 0.11.0,
Postgresql 8.0.1,
postgres-pr 0.3.6 (and/or postgres-0.7.1)
Using table of the form: moo(id serial, name varchar(50))
If I initialise a new rails application and generate a model and controller for the moo table and then add:
model :moo
scaffold :moo
to the controller, and
self.table_name = "moo"
to the model; everything works fine, I can add/delete/view records perfectly.
If I instead use the scaffold generator, i.e.:
script/generate scaffold moo moo
it proceeds without error, and the list/show and destroy actions work fine, but the new and edit actions fail to present an input textbox (for the moo name column). To elaborate, instead of something like:
Editing moo
[name textbox]
[Edit button]
I have:
Editing moo
[Edit button]
I then have to manually open edit.rhtml and add the textfield tag, if I want to add/edit data.