Yes.
I have worked out the issue.
Background: the scaffold has been run for the first time - migration
is created & form built properly.
Scenario: for whatever reason, I re-run the scaffold, to, amongst
other things, re-generate the form.
I used the command: rails g scaffold Participant --migration false -s
which skips existing files and creates the rest except for the
migration, in this case.
The form generated looks like this:
------------------------------------------------------------
= simple_form_for(@participantb) do |f|
= f.error_notification
.inputs
.actions
= f.button :submit
--------------------------------------------------------------
Through testing, this scenario won't re-gen the form. It would seem
that the form is generated of the field specs contained on the
scaffold command line, not read from the database after the table has
been built - which doesn't seem ideal.
But now I know!
Thanks for your help.
~ Ross
On Jul 30, 4:12 am, Rafael Mendonça França <
rafaelmfra...@gmail.com>
wrote:
> Sent with Sparrow (
http://www.sparrowmailapp.com)