Sha256: cf1db8439a7dd6b1d7d2d31aaca24d0e1e4c76b224b2a87e253eeee74cb7506c

Contents?: true

Size: 615 Bytes

Versions: 3

Compression:

Stored size: 615 Bytes

Contents

<%= form_for(get_dejavu_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 :code %><br />
    <%= f.text_field :code %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dejavu-0.1.2 test_app/app/views/products/_form.html.erb
dejavu-0.1.1 test_app/app/views/products/_form.html.erb
dejavu-0.1.0 test_app/app/views/products/_form.html.erb