form_for user url action change_password do password_field_tag Current

1
2
3
4
5
6
<% form_for :user, :url => {:action => :change_password} do -%>
<%= password_field_tag 'Current password:', 'user[current_password]', nil %>
<%= password_field_tag 'New password', 'user[password]', nil %>
<%= password_field_tag 'Confirm password:', 'user[password_confirmation]', nil %>
<%= submit_tag %>
<% end -%>