Sha256: 9c80180e5ec1397e8346b3932b5dc0093891cc220842a6fcfbfce9805b63f0e3

Contents?: true

Size: 1006 Bytes

Versions: 11

Compression:

Stored size: 1006 Bytes

Contents

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

      <ul>
      <% @person.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 :age %><br />
    <%= f.text_field :age %>
  </div>
  <div class="field">
    <%= f.label :date_of_birth %><br />
    <%= f.date_select :date_of_birth %>
  </div>
  <div class="field">
    <%= f.label :gender %><br />
    <%= f.text_field :gender %>
  </div>
  <div class="field">
    <%= f.label :alive %><br />
    <%= f.check_box :alive %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
jtable-rails-0.2.5 spec/support/rails_app/app/views/people/_form.html.erb
jtable-rails-0.2.4 spec/support/rails_app/app/views/people/_form.html.erb
jtable-rails-0.2.3 spec/support/rails_app/app/views/people/_form.html.erb
jtable-rails-0.2.2 spec/support/rails_app/app/views/people/_form.html.erb
jtable-rails-0.2.1 spec/support/rails_app/app/views/people/_form.html.erb
jtable-rails-0.2.0 spec/support/rails_app/app/views/people/_form.html.erb
jtable-rails-0.1.4 spec/support/rails_app/app/views/people/_form.html.erb
jtable-rails-0.1.3 spec/support/rails_app/app/views/people/_form.html.erb
jtable-rails-0.1.2 spec/support/rails_app/app/views/people/_form.html.erb
jtable-rails-0.1.1 spec/support/rails_app/app/views/people/_form.html.erb
jtable-rails-0.1.0 spec/support/rails_app/app/views/people/_form.html.erb