Sha256: 36c48617740bec20ca0e8137d40a270f2ea07b1032656092ecb2c9fbf64fb81d

Contents?: true

Size: 830 Bytes

Versions: 10

Compression:

Stored size: 830 Bytes

Contents

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

      <ul>
      <% @customer.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :first_name %><br />
    <%= f.text_field :first_name %>
  </div>
  <div class="field">
    <%= f.label :last_name %><br />
    <%= f.text_field :last_name %>
  </div>
  <div class="field">
    <%= f.label :email_address %><br />
    <%= f.text_field :email_address %>
  </div>
  <div class="field">
    <%= f.label :phone %><br />
    <%= f.text_field :phone %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hashbrowns-0.2.5 example/app/views/customers/_form.html.erb
hashbrowns-0.2.4 example/app/views/customers/_form.html.erb
hashbrowns-0.2.3 example/app/views/customers/_form.html.erb
hashbrowns-0.2.2 example/app/views/customers/_form.html.erb
hashbrowns-0.2.1 example/app/views/customers/_form.html.erb
hashbrowns-0.2.0 example/app/views/customers/_form.html.erb
hashbrowns-0.1.6 example/app/views/customers/_form.html.erb
hashbrowns-0.1.5 example/app/views/customers/_form.html.erb
hashbrowns-0.1.4 example/app/views/customers/_form.html.erb
hashbrowns-0.1.3 example/app/views/customers/_form.html.erb