Hello All,
I am new to ruby, so please excuse me.
problem is --------
I have a model named “Album”
I want to update all records from “albums” table in a single form and
single button “Update”.
my code for view —
<% form_for :album, :url => { :action => “update”, :id => album.id } do
|f| %>
<%= f.error_messages %>
<% end %>
this shows only one record. But i want all records display in form and
single Update button.
How I use for loop?
How I do this?
Please help me.
Thanks,
Viki