<%= form_for @contact_form, :url => {:action => 'contact'}, :method => 'post' do |f| %> <%= error_messages_for(@contact_form) %>
<%= f.text_field :nickname %>

<%= f.label :name, 'Your name' %>
<%= f.text_field :name %>

<%= f.label :email, 'Your email' %>
<%= f.text_field :email %>

<%= f.label :file %> can be attached optionally
<%= f.file_field :file %>

<%= f.label :message %>
<%= f.text_area :message, :rows => 10 %>

<%= f.submit 'Send', :class => 'send-contact-form' %>

<% end %>