Sha256: 3d4f483bb4eb333fad18173f0d4edecd9e18278121074222af2d3390e8ab5da7

Contents?: true

Size: 1.06 KB

Versions: 8

Compression:

Stored size: 1.06 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 />
    <select id="user_country" name="user[country]">
      <option value="spain">Spain</option> 
      <option value="italy">Italy</option>
    </select>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
best_in_place-0.1.8 test_app/app/views/users/_form.html.erb
best_in_place-0.1.7 test_app/app/views/users/_form.html.erb
best_in_place-0.1.6 test_app/app/views/users/_form.html.erb
best_in_place-0.1.5 test_app/app/views/users/_form.html.erb
best_in_place-0.1.4 test_app/app/views/users/_form.html.erb
best_in_place-0.1.3 test_app/app/views/users/_form.html.erb
best_in_place-0.1.2 test_app/app/views/users/_form.html.erb
best_in_place-0.1.1 test_app/app/views/users/_form.html.erb