Started inital migration to rails 3.2
This commit is contained in:
23
app/views/users/_passwords.html.erb
Executable file
23
app/views/users/_passwords.html.erb
Executable file
@@ -0,0 +1,23 @@
|
||||
<%= 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 %>
|
||||
|
||||
<p><%= f.label :password, "New password" %><br />
|
||||
<%= f.password_field :password %></p>
|
||||
|
||||
<p><%= f.label :password_confirmation %><br />
|
||||
<%= f.password_field :password_confirmation %></p>
|
||||
|
||||
<div class="actions">
|
||||
<%= f.submit "Change password" %>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user