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/.