Sha256: 79b01ecd7840c3f0df990138282b38a39fde602b9c0c3ffd68c9b7ef00361895

Contents?: true

Size: 593 Bytes

Versions: 29

Compression:

Stored size: 593 Bytes

Contents

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

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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
opay-1.3.2 spec/dummy/app/views/orders/_form.html.erb
opay-1.3.1 spec/dummy/app/views/orders/_form.html.erb
opay-1.3.0 spec/dummy/app/views/orders/_form.html.erb
opay-1.2.8 spec/dummy/app/views/orders/_form.html.erb
opay-1.2.7 spec/dummy/app/views/orders/_form.html.erb
opay-1.2.6 spec/dummy/app/views/orders/_form.html.erb
opay-1.2.5 spec/dummy/app/views/orders/_form.html.erb
opay-1.2.4 spec/dummy/app/views/orders/_form.html.erb
opay-1.2.3 spec/dummy/app/views/orders/_form.html.erb
opay-1.2.2 spec/dummy/app/views/orders/_form.html.erb
opay-1.2.1 spec/dummy/app/views/orders/_form.html.erb
opay-1.2.0 spec/dummy/app/views/orders/_form.html.erb
opay-1.1.6 spec/dummy/app/views/orders/_form.html.erb
opay-1.1.5 spec/dummy/app/views/orders/_form.html.erb
opay-1.1.4 spec/dummy/app/views/orders/_form.html.erb
opay-1.1.3 spec/dummy/app/views/orders/_form.html.erb
opay-1.1.2 spec/dummy/app/views/orders/_form.html.erb
opay-1.1.1 spec/dummy/app/views/orders/_form.html.erb
opay-1.1.0 spec/dummy/app/views/orders/_form.html.erb
opay-1.0.9 spec/dummy/app/views/orders/_form.html.erb