Updating multiple records in a single form

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 %>

<%= f.text_field :title, :value => "#{album.title}"%> <%= f.text_field :year, :value => "#{album.year}" %> <%= f.text_field :language, :value => "#{album.language}" %> <%= f.text_field :display_css, :value => "#{album.display_css}" %> <%= submit_tag 'Update' %>

<% 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