yes, you can edit the files themselves to reflect the changes you made
to the model. If you added a new field x to the model, then you can
change the files like _form.html.erb to have the x field in it.
--
Ramon Tayag
In most cases if you want to modify an existing schema you would
create a new migration file:
script/generate migration add_email_column_to_user
and then put what you need in the newly-created file and then run
"rake db:migrate".
If you're at the very beginning of a project, and decide you want to
change something, you might migrate backwards and start again. Once
the project is underway, though, migrating backwards ends up being
more confusing than it's worth in almost every case.
As for the scaffolding, I wouldn't recommend using it as the basis for
a real application, except in cases where what it produces is exactly
what you want. If you find yourself developing an app by starting with
the scaffolding and making lots of changes (or wondering whether what
you're doing is OK because it deviates from the scaffolding), it's a
sign that you should abandon the scaffolding and just develop the app.
Or you can skip that process and just abandon the scaffolding from the
start :-)
David
--
Rails training from David A. Black and Ruby Power and Light:
* Advancing With Rails August 18-21 Edison, NJ
* Co-taught by D.A. Black and Erik Kastner
See http://www.rubypal.com for details and updates!