Sha256: 79f145b60fdffa2ea981f1cc3fdad1b8167d6132ca8f5a5124357cd77657dc7a

Contents?: true

Size: 1.04 KB

Versions: 15

Compression:

Stored size: 1.04 KB

Contents

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

      <ul>
      <% @user.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 :last_name %><br />
    <%= f.text_field :last_name %>
  </div>
  <div class="field">
    <%= f.label :address %><br />
    <%= f.text_field :address %>
  </div>
  <div class="field">
    <%= f.label :email %><br />
    <%= f.text_field :email %>
  </div>
  <div class="field">
    <%= f.label :zip %><br />
    <%= f.text_field :zip %>
  </div>
  <div class="field">
    <%= f.label :country %><br />
    <%= 
      f.select :country, COUNTRIES.map {|c|
        v0 = c[0]
        c[0] = c[1]
        c[1] = v0
        c
      }
    %>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
best_in_place-1.1.2 test_app/app/views/users/_form.html.erb
best_in_place-1.1.1 test_app/app/views/users/_form.html.erb
best_in_place-1.1.0 test_app/app/views/users/_form.html.erb
best_in_place-0.2.3 test_app/app/views/users/_form.html.erb
best_in_place-1.0.6 test_app/app/views/users/_form.html.erb
best_in_place-1.0.5 test_app/app/views/users/_form.html.erb
best_in_place-1.0.4 test_app/app/views/users/_form.html.erb
best_in_place-1.0.3 test_app/app/views/users/_form.html.erb
best_in_place-0.2.2 test_app/app/views/users/_form.html.erb
best_in_place-1.0.2 test_app/app/views/users/_form.html.erb
best_in_place-0.2.1 test_app/app/views/users/_form.html.erb
best_in_place-1.0.1 test_app/app/views/users/_form.html.erb
best_in_place-0.2.0 test_app/app/views/users/_form.html.erb
best_in_place-1.0.0 test_app/app/views/users/_form.html.erb
best_in_place-0.1.9 test_app/app/views/users/_form.html.erb