Added a column to my table in ruby on rails, and it is not shown in the scaffold (new / edit screens) - why? -


i new ruby on rails, , have scaffold created.

the scaffold (let's call "pet") had original fields ("pet name", "pet type") added new column (let's call "pet color")

i added via "rails generate migration addpetcolortopets pet_color:string:200" followed "rake db:migrate", "rails s"

now, thought automatically update "pet/new" , "pet/edit" pages adding these variables. didn't.

so... guess i'm asking - should have? if not, need in order transition pages?

thanks

no, don't have update views created before, so, must update html, controller , maybe model work new field/attribute


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -