Sha256: 928f1a22ca803a60b417733e9107b4f8f668997f56b656007ee2d9799fbd1216

Contents?: true

Size: 1005 Bytes

Versions: 10

Compression:

Stored size: 1005 Bytes

Contents

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

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

  <div class="field">
    <%= f.label :address1 %><br />
    <%= f.text_field :address1 %>
  </div>
  <div class="field">
    <%= f.label :address2 %><br />
    <%= f.text_field :address2 %>
  </div>
  <div class="field">
    <%= f.label :city %><br />
    <%= f.text_field :city %>
  </div>
  <div class="field">
    <%= f.label :state %><br />
    <%= f.text_field :state %>
  </div>
  <div class="field">
    <%= f.label :zip %><br />
    <%= f.text_field :zip %>
  </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/destinations/_form.html.erb
hashbrowns-0.2.4 example/app/views/destinations/_form.html.erb
hashbrowns-0.2.3 example/app/views/destinations/_form.html.erb
hashbrowns-0.2.2 example/app/views/destinations/_form.html.erb
hashbrowns-0.2.1 example/app/views/destinations/_form.html.erb
hashbrowns-0.2.0 example/app/views/destinations/_form.html.erb
hashbrowns-0.1.6 example/app/views/destinations/_form.html.erb
hashbrowns-0.1.5 example/app/views/destinations/_form.html.erb
hashbrowns-0.1.4 example/app/views/destinations/_form.html.erb
hashbrowns-0.1.3 example/app/views/destinations/_form.html.erb