Sha256: 6c453df9eb494d38b51d485708a01494fdcee20684766aa82c0db4569f7520b5

Contents?: true

Size: 831 Bytes

Versions: 5

Compression:

Stored size: 831 Bytes

Contents

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

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

  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>

  <h3>uploads</h3>

  <div class="field">
    <label>files</label>
    <%- if @store_product.new_record? -%>
      create first
    <%- else -%>
      <%= attachment_uploader(@store_product, :images, :image) %>
      <%= attachment_loader(@store_product, :images) %>
    <%- end -%>
  </div>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
media_magick-0.4.1 spec/dummy/app/views/store/products/_form.html.erb
media_magick-0.4.0 spec/dummy/app/views/store/products/_form.html.erb
media_magick-0.3.3 spec/dummy/app/views/store/products/_form.html.erb
media_magick-0.3.2 spec/dummy/app/views/store/products/_form.html.erb
media_magick-0.3.0 spec/dummy/app/views/store/products/_form.html.erb