Sha256: 71ca22c81828276f534796b5ca86983e148d3c019538941945df65ed6658ad45

Contents?: true

Size: 586 Bytes

Versions: 5

Compression:

Stored size: 586 Bytes

Contents

<%= form_for(@item) do |f| %>
  <% if @item.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@item.errors.count, "error") %> prohibited this item from being saved:</h2>

      <ul>
      <% @item.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 :price %><br />
    <%= f.text_field :price %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 full-examples/rest_from_scratch/part_1/app/views/items/_form.html.erb
restfulie-1.1.1 full-examples/rest_from_scratch/part_1/app/views/items/_form.html.erb
restfulie-1.1.0 full-examples/rest_from_scratch/part_1/app/views/items/_form.html.erb
restfulie-nosqlite-1.0.3 full-examples/rest_from_scratch/part_1/app/views/items/_form.html.erb
restfulie-1.0.3 full-examples/rest_from_scratch/part_1/app/views/items/_form.html.erb