For a particular object ("MyObject"), I created initial model/view/controller code by first creating a migration file which added a table to the database and then running this: > ruby script/generate model MyObject Multiple model/view/controller files were created as expected. However, the next migration file version added columns to the original table. After running migrate again, the table was modified but the view files such as _form.rhtml were not. Is there a way to generate this or is manual modification the only way?
on 2007-01-23 03:50
on 2007-01-23 04:55
On Jan 23, 1:50 pm, "stan.baptista" <stan.bapti...@gmail.com> wrote: > Is there a way to generate this or is manual modification the only way? I guess you originally ran "script/generate scaffold Whatever", which spat out the pages/forms/etc for you? If this is the case, just run scaffold again with the "-f" option. This will force it to overwrite existing files.
on 2007-01-24 21:02
> If this is the case, just run scaffold again with the "-f" option. This will force it to overwrite existing files. That did the trick. Thanks.