<h1>Editing photo</h1> 
<% form_for(@photo) do |f| %> 
<%= render :partial => 'form', :locals => { :f => f } %> 
  <p> 
    <%= f.submit "Update" %> 
  </p> 
<% end %> 
<%= link_to 'Show', @photo %> | 
<%= link_to 'Back', photos_path %>