All threads / Advanced management (DEVISE) profiles.

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.

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 %>
Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.