Sha256: b29c42ddbd923c0f72bc7a3b583fdc48168954e4e76203b33a7e3b5e4f28162f

Contents?: true

Size: 872 Bytes

Versions: 7

Compression:

Stored size: 872 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 |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

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

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

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

  <div class="field">
    <%= f.label :active %>
    <%= f.check_box :active %>
  </div>

  <div class="field">
    <%= f.label :description %>
    <%= f.text_area :description %>
  </div>

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
audited_views-0.0.7 spec/dummy/app/views/products/_form.html.erb
audited_views-0.0.6 spec/dummy/app/views/products/_form.html.erb
audited_views-0.0.5 spec/dummy/app/views/products/_form.html.erb
audited_views-0.0.4 spec/dummy/app/views/products/_form.html.erb
audited_views-0.0.3 spec/dummy/app/views/products/_form.html.erb
audited_views-0.0.2 spec/dummy/app/views/products/_form.html.erb
audited_views-0.0.1 spec/dummy/app/views/products/_form.html.erb