Search code examples
ruby-on-railsrubyscaffolding

Updating scaffold views after adding new column


I created a table using scaffold. Later added a new column

$ rails generate migration add_column_name_to_table_name column_name:string
$ rake db:migrate

Now I'm wondering is there any way to auto-update earlier generated by scaffold views?


Solution

  • Nope, you've got to do it manually.

    FWIW, these sorts of changes are made much easier if you're using one of the form generator gems.