Save 36% for Black Friday! Learn more

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Advanced management (DEVISE) profiles.

Antonio F. asked in Gems / Libraries

Hello Chris,

I have the following problem, i can not separate the management of the profile to "devise" below will list how I would manage profiles:

Edit User Profile
(ex. http://localhost:3000/users/edit-profile)

  • Values "First Name", "Last Name", "Address", "City"

Edit User Account
(ex. http://localhost:3000/users/edit-account)

  • Values "Email", "Old Password", "New Password", and "New Password Confirmation"

Deleting user accounts
(ex. http://localhost:3000/users/account-close)

  • Values Delete button

You can get support / course about?

P.S. sorry for my English.

Greetings.

Reply

I am not too sure about the editing of your user profiles, I am still pretty new to Rails myself. - If i find any other info i will let you know.

The Devise docs should help you with editing a user's password: https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-edit-their-password

This may help you create a delete link you asked for...

<%= link_to "Cancel my account", registration_path(current_user), data: { confirm: "Are you sure?" }, method: :delete %>
Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.