Sha256: 6f8e606ab84ab42c48f2783b5f1814d94c28dd6a4c0036b1a3ce19f302ba9277

Contents?: true

Size: 808 Bytes

Versions: 9

Compression:

Stored size: 808 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_area :description %>
  </div>
  <div class="field">
    <%= f.label :price %><br />
    <%= f.text_field :price %>
  </div>
  <div class="field">
    <%= f.label :quantity %><br />
    <%= f.number_field :quantity %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
activegrid-1.0.8 test/dummy/app/views/products/_form.html.erb
activegrid-1.0.7 test/dummy/app/views/products/_form.html.erb
activegrid-1.0.6 test/dummy/app/views/products/_form.html.erb
activegrid-1.0.5 test/dummy/app/views/products/_form.html.erb
activegrid-1.0.4 test/dummy/app/views/products/_form.html.erb
activegrid-1.0.3 test/dummy/app/views/products/_form.html.erb
activegrid-1.0.2 test/dummy/app/views/products/_form.html.erb
activegrid-1.0.1 test/dummy/app/views/products/_form.html.erb
activegrid-1.0.0 test/dummy/app/views/products/_form.html.erb