24 lines
621 B
Plaintext
Executable File
24 lines
621 B
Plaintext
Executable File
<%= 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 %>
|
|
|
|
<%= f.label :password, "New password" %>
|
|
<%= f.password_field :password %>
|
|
|
|
<%= f.label :password_confirmation %>
|
|
<%= f.password_field :password_confirmation %>
|
|
|
|
<div class="actions">
|
|
<%= f.submit "Change password", :class => 'btn btn-primary' %>
|
|
</div>
|
|
<% end %>
|