<% form_for  :photo, @photo,
             :url => photo_path(@photo), 
             :html => {:multipart => true} do |f| %>
    <%= f.error_messages %>

    <p>
      <%= f.label :description %><br />
      <%= f.text_field :description %>
    </p>
    <p>
      <%= f.label :date_taken %><br />
      <%= f.date_select :date_taken, :start_year => 1959 %>
    </p>
    <p>
      <%= f.label :extension %><br />
      <%= f.text_field :extension %>
    </p>
    <p>
      <%= f.label :actor_id %><br />
      <%= f.text_field :actor_id %>
    </p>
    <p>
      <%= f.submit 'Submit' %>
    </p>
<% end %>