Sha256: 2a19d834ee61a30709073d6d8cf74d105b9f5c544e9670de5a191ad736dda13e

Contents?: true

Size: 704 Bytes

Versions: 6

Compression:

Stored size: 704 Bytes

Contents

<%= form_for([:admin, @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 :username %><br />
    <%= f.text_field :username %>
  </div>
  <div class="field">
    <%= f.label :email %><br />
    <%= f.text_field :email %>
  </div>
  <div class="field">
    <%= f.label :password %><br />
    <%= f.text_field :password %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wafflemix-0.0.6 app/views/wafflemix/admin/users/_form.html.erb
wafflemix-0.0.5 app/views/wafflemix/admin/users/_form.html.erb
wafflemix-0.0.4 app/views/wafflemix/admin/users/_form.html.erb
wafflemix-0.0.3 app/views/wafflemix/admin/users/_form.html.erb
wafflemix-0.0.2 app/views/wafflemix/admin/users/_form.html.erb
wafflemix-0.0.1 app/views/wafflemix/admin/users/_form.html.erb