Topic: views not updated automatically after rake db:migrate?

Hi,

I want to modify my Item table (remove/add columns) after creating it. But seems the html views are not updated automatically. Here's what I did:

rails generate scaffold Item name:string price:integer
rake db:migrate
rails generate migration AddDescriptionToItems description:text
rails generate migration RemovePriceFromItems price:integer
rails generate migration
rake db:migration

I checked the .rb files under db/migrate and tried the console to create item in the table. They looks okay. But the problem is, the .erb files under app/views/items are not automatically updated according to the columns changes.

Did I miss anything to have the .erb files updated? Or I have to modify these .erb files manually -- I hope not?

Thanks!
-Gina

Re: views not updated automatically after rake db:migrate?

You have to update the files manually (why would you want to keep scaffolded views around anyway).  I think you could redo the scaffold but now is a good time to understand the views.

Re: views not updated automatically after rake db:migrate?

I see. Thank you, Norm!