Sha256: 87289ae2c962e0395371a5e4b8c2636d0ee16c092e3075cfbb5a0f2236a6da7c

Contents?: true

Size: 902 Bytes

Versions: 1

Compression:

Stored size: 902 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>
    <%= f.fields_for :category do |ctf| %>
      <%= ctf.label :category_name %>
      <%= ctf.text_field :name %>
    <% end %>
  </div>
  <div>
    <%= f.fields_for :colors do |clf| %>
      <%= clf.label :color_name %>
      <%= clf.text_field :name %>
    <% end %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dejavu-0.2.0 test_app/app/views/products/_form.html.erb