Sha256: 0c9d7553ab18c72a3501a8a6aeed6eaccf8ea3ad02ca139fdd2966d49e726e66

Contents?: true

Size: 506 Bytes

Versions: 7

Compression:

Stored size: 506 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 :name %>
    <%= f.text_field :name %>
  </div>

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
autocompl-0.2.2 test/dummy/app/views/products/_form.html.erb
autocompl-0.2.1 test/dummy/app/views/products/_form.html.erb
autocompl-0.2.0 test/dummy/app/views/products/_form.html.erb
autocompl-0.1.2 test/dummy/app/views/products/_form.html.erb
autocompl-0.1.1 test/dummy/app/views/products/_form.html.erb
autocompl-0.1.0 test/dummy/app/views/products/_form.html.erb
autocompl-0.0.1 test/dummy/app/views/products/_form.html.erb