Sha256: c7fe6604a5423e516cc13da635f7de745219d370c26aa1fb19891b1bf152a11b

Contents?: true

Size: 979 Bytes

Versions: 2

Compression:

Stored size: 979 Bytes

Contents

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

      <ul>
      <% @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>
  <div class="field">
    <%= f.label :description %><br />
    <%= f.text_field :description %>
  </div>
  <!--StartCropperImagesSection-->
  <%= images_id(@product) %>
  <%= image_cropper(@product, { image_name: "imgA", ratio: :user }) %><br/>
  <%= image_cropper(@product, { image_name: "imgB", ratio: :big }) %><br/>
  <%= image_cropper(@product, { image_name: "imgC", ratio: :gigant }) %><br/>
  <%= image_tag @product.imgA.user %>
  <!--StartCropperImagesSection-->
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crimagify-0.0.2.1 test/dummy/app/views/products/_form.html.erb
crimagify-0.0.2 test/dummy/app/views/products/_form.html.erb