Sha256: 286f01880479afa48d60649870e4bb3898580183e3ba5b69ee22f9fb11cec5b4

Contents?: true

Size: 594 Bytes

Versions: 7

Compression:

Stored size: 594 Bytes

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 :gender %><br />
    <%= f.text_field :gender %>
  </div>
  
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
genderize-0.1.1 spec/dummy/app/views/users/_form.html.erb
genderize-0.1.0 spec/dummy/app/views/users/_form.html.erb
genderize-0.0.8 spec/dummy/app/views/users/_form.html.erb
genderize-0.0.7 spec/dummy/app/views/users/_form.html.erb
genderize-0.0.6 spec/dummy/app/views/users/_form.html.erb
genderize-0.0.5 spec/dummy/app/views/users/_form.html.erb
genderize-0.0.4 spec/dummy/app/views/users/_form.html.erb