I have authentication process but it saves the user when sign up and login can be done once sign up is completed. I want to send a mail to the user to conform the account, only then he must be able to login. How can i add this feature in my existing authentication system?
Share
There is a pretty good gem that helps you with user authentication workflows. Devise can be found here: http://rubygems.org/gems/devise
But if you want to develop your own authentication system, you need to save the user on the database, and use a column for to manage the registration state (e.g. registered / confirmed).
To send e-mails to the user, please take a look at the action mailer documentation page: http://guides.rubyonrails.org/action_mailer_basics.html