0
votes

I am using Devise in a project and have followed the steps to get started with Devise being used in my app.

I have also generated Devise views to support registration for my user model. How can I make the backend registration of the user to be integrated with the view?

I read this link https://github.com/plataformatec/devise/wiki/How-To:-Change-Default-Sign_up---Registration-Path-with-Custom-Path

and it suggests devise/sessions#new for both sign in and registration.

Is that an example ? How can I add actions that would enable validation of the fields ? How can I add a successful registration to my database ?

Currently the Signup button redirects and loops me to the same page with login buttons.

What action should I edit in my user controller? Or should I override devise registration controller ?

Any inputs would be helpful.

1

1 Answers

0
votes

Coming to adding a successful user registration to the database devise should be able to do that automatically if you have set it up correctly. Only thing is that you have to try various options in routes file to set up the flow that you want. To add validation to fields you can make use of the rails helper method 'validates'.