heartcombo / devise

Flexible authentication solution for Rails with Warden.
http://blog.plataformatec.com.br/tag/devise/
MIT License
23.95k stars 5.55k forks source link

Feature Request for Extra parameters on the sign_up page and user model #5612

Open jackparsons93 opened 1 year ago

jackparsons93 commented 1 year ago

I was watching a Youtube video [https://youtu.be/kUoN3Uv9ZTQ?t=702] by web crunch where he edits the Registration controller which inherits from Devise::RegistrationController to allow the Devise model to accept an extra parameter of Name on the User model in the sign_up.

I also think it would be cool to add Devise Scaffolding so that a similar command to rails g scaffold Model [params], but for devise to add views and controllers to make a list of users and see the info of all users.

I also would like to make a nested scaffold generator for devise so that we have the Users model where User has_many: post and a post model where belongs_to: User. And to automatically set the routes with a resources do block to make it so that localhost:3000/users/1/posts/3 will pop up with the third post of the first user and have this be a one line command for nested scaffold with devise.

Thank you for your time Chris Wilson

samiq commented 12 months ago

I think you might find this tutorial useful, it shows how you can edit the model and views before you do the initial migration