<h1>New photo</h1>

<%= error_messages_for :photo %>

<% form_for(:photo, :url => photos_path) do |f| %>
  <p>
    <b>Title</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <%= submit_tag "Create" %>
  </p>
<% end %>

<%= link_to 'Back', photos_path %>