<% throw_content :for_sidebar do -%> Back to <%= @photo.album.name -%>
Back to photo
<% end -%> <%= error_messages_for :photo %> <% form_for :photo, :action => url(:photo, :id => @photo.id) do %>
Change Photo Details

Photo:

Album: <%= select_control 'album_id', :collection => Album.for_select, :selected => (@photo.album.name rescue nil) -%>

<%= submit_button 'Update' %>

<% end -%>