Sha256: c36f0d3110e648f25733a2cc4ed5ea0dda98cbabae79ee0860806725c48f5e1e

Contents?: true

Size: 695 Bytes

Versions: 15

Compression:

Stored size: 695 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 %><br>
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :code %><br>
    <%= f.text_field :code %>
  </div>
  <div class="field">
    <%= f.label :price %><br>
    <%= f.text_field :price %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
restspec-0.3.2 examples/store-api/app/views/products/_form.html.erb
restspec-0.3.1 examples/store-api/app/views/products/_form.html.erb
restspec-0.3.0 examples/store-api/app/views/products/_form.html.erb
restspec-0.2.6 examples/store-api/app/views/products/_form.html.erb
restspec-0.2.5 examples/store-api/app/views/products/_form.html.erb
restspec-0.2.4 examples/store-api/app/views/products/_form.html.erb
restspec-0.2.3 examples/store-api/app/views/products/_form.html.erb
restspec-0.2.2 examples/store-api/app/views/products/_form.html.erb
restspec-0.2.1 examples/store-api/app/views/products/_form.html.erb
restspec-0.2 examples/store-api/app/views/products/_form.html.erb
restspec-0.1 examples/store-api/app/views/products/_form.html.erb
restspec-0.0.4 examples/store-api/app/views/products/_form.html.erb
restspec-0.0.3 examples/store-api/app/views/products/_form.html.erb
restspec-0.0.2 examples/store-api/app/views/products/_form.html.erb
restspec-0.0.1 examples/store-api/app/views/products/_form.html.erb