All threads / User Authentication with Devise Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

User Authentication with Devise Discussion

Maxime Sahroui ·

If like me you need to add some fields in User model. You can simply create your own registration controller and define sign_up_params and account_update_params to overload the devise controller.

I don't know if that is the best practice... but it works.

Source: http://www.jacopretorius.ne...

Enjoy ;)

Thanks for sharing Maxime! I've also written a post on this about without having to setup a new controller. https://gorails.com/blog/ra...

Maxime Sahroui ·

Indeed, your approach is easier to implement I think ;)
I'm going to read all your posts ASAP!

Reply
Join the discussion

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

Join 35,699+ 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.