<%= form_for(@attachment) do |f| %>
  <% if @attachment.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@attachment.errors.count, "error") %> prohibited this attachment from being saved:</h2>

      <ul>
      <% @attachment.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :data_file_name %><br />
    <%= f.text_field :data_file_name %>
  </div>
  <div class="field">
    <%= f.label :data_content_type %><br />
    <%= f.text_field :data_content_type %>
  </div>
  <div class="field">
    <%= f.label :data_file_size %><br />
    <%= f.number_field :data_file_size %>
  </div>
  <div class="field">
    <%= f.label :data_updated_at %><br />
    <%= f.datetime_select :data_updated_at %>
  </div>
  <div class="field">
    <%= f.label :post_id %><br />
    <%= f.number_field :post_id %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
