Last active
June 27, 2016 16:05
-
-
Save adis-io/248da0b1a520b8d85726c2ec224d885e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RegistrationsController < Devise::RegistrationsController | |
def create | |
super do |resource| | |
if resource.persisted? | |
resource.send_confirmation_instructions | |
end | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.routes.draw do | |
devise_for :users, controllers: { registrations: "registrations" } | |
root 'application#home' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment