Sha256: 9c14a58df6dcb13cc86f79af6117f92667894dd9da7283ea3e0f337bf959b6ea

Contents?: true

Size: 1.15 KB

Versions: 8

Compression:

Stored size: 1.15 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 :height %><br />
    <%= f.select :height, height_collection %>
  </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

8 entries across 8 versions & 3 rubygems

Version Path
very_best_in_place-2.0.3 test_app/app/views/users/_form.html.erb
crest_in_place-2.2.0 test_app/app/views/users/_form.html.erb
best_in_place-2.1.0 test_app/app/views/users/_form.html.erb
best_in_place-2.0.3 test_app/app/views/users/_form.html.erb
best_in_place-2.0.2 test_app/app/views/users/_form.html.erb
best_in_place-2.0.1 test_app/app/views/users/_form.html.erb
best_in_place-2.0.0 test_app/app/views/users/_form.html.erb
best_in_place-1.1.3 test_app/app/views/users/_form.html.erb