I am trying to learn Ruby on Rails, so this may be a pretty basic
question.
I have added  new columns to an existing table using
'rails generate migration add_column_to_table' command.
I don't see any change in model & view due to this.
So, I changed the all the views (like _form.html.erb & index.html.erb)
to include a new form element like:
    <%= f.label :filename %><br>
    <%= f.text_field :filename %>
where :filename was the new column.
When I run the rails, while the new column comes on UI, it doesn't get
saved into db. I think the binding between View and Model is missing.
Is there a way to add a new column in the table to all layers
(view/controller/model etc) apart from the db.
-- 
Posted via http://www.ruby-forum.com/.
-- 
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/080c37def7708ef100f8e76a87b9abc1%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.