Sha256: 6ec09671d2f570e566f1a41381c98a9dd6fea771f7eefeb91f2a6b8b79365214

Contents?: true

Size: 603 Bytes

Versions: 7

Compression:

Stored size: 603 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 :category %><br>
    <%= f.text_field :category %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bread-0.0.11 test/dummy/app/views/products/_form.html.erb
bread-0.0.10 test/dummy/app/views/products/_form.html.erb
bread-0.0.9 test/dummy/app/views/products/_form.html.erb
bread-0.0.7 test/dummy/app/views/products/_form.html.erb
bread-0.0.6 test/dummy/app/views/products/_form.html.erb
bread-0.0.5 test/dummy/app/views/products/_form.html.erb
bread-0.0.4 test/dummy/app/views/products/_form.html.erb