2009-06-10 01:22:48 +02:00
|
|
|
<% form_for :photos, :url => update_multiple_photos_path, :html => { :method => :put } do |f| %>
|
|
|
|
<% for photo in @photos %>
|
|
|
|
<p>
|
|
|
|
<% f.fields_for photo do |p|%>
|
2009-06-28 18:02:19 +02:00
|
|
|
<%= render :partial => "photos/thumb", :locals => {:photo => photo } %>
|
2009-06-10 01:22:48 +02:00
|
|
|
<%= p.text_field :title, :index => photo.id %>
|
|
|
|
<%= p.text_field :tags, :index => photo.id, :value => photo.tag_list %>
|
|
|
|
<% end%>
|
|
|
|
</p>
|
|
|
|
<% end%>
|
|
|
|
<p><%= f.submit "Submit" %></p>
|
2009-06-30 21:24:06 +02:00
|
|
|
<% end %>
|