Sha256: b6ec16e825d17294622b9949f467f31d1b990a26b91fe4d08431ef69f402939d

Contents?: true

Size: 717 Bytes

Versions: 2

Compression:

Stored size: 717 Bytes

Contents

<%= form_for(get_dejavu_for(@product), :url => create_only_name_products_path) 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, "Create only: name" %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :code, "Create only: code" %><br />
    <%= f.text_field :code %>
  </div>
  <div class="actions">
    <%= f.submit "Create only name" %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dejavu-0.3.1 test_app/app/views/products/new_only_name.html.erb
dejavu-0.3.0 test_app/app/views/products/new_only_name.html.erb