Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (29 sloc) 0.889 kB
- title "Edit #{resource_name.to_s.humanize}"
= simple_form_for resource,
as: resource_name,
url: registration_path(resource_name),
html: { method: :put } do |f|
legend
| New profile information
.form-inputs
= f.input :full_name, required: true, autofocus: true
= f.input :email, required: true
= f.input :password,
autocomplete: "off",
hint: "leave it blank if you don't want to change it",
required: false
= f.input :password_confirmation,
required: false
= f.input :current_password,
hint: "we need your current password to confirm your changes",
required: true
.form-actions
= f.button :submit, "Update"
legend
| Cancel my account
p
' Unhappy?
= link_to "Cancel my account",
registration_path(resource_name),
data: { confirm: "Are you sure?" },
method: :delete
Jump to Line
Something went wrong with that request. Please try again.