Created
April 15, 2013 18:22
-
-
Save jpotts18/5390163 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
# This is used to override what happens after login | |
class RegistrationsController < Devise::RegistrationsController | |
protected | |
def after_sign_up_path_for(resource) | |
@profile = Profile.create(:user_id => resource.id) | |
edit_profile_path(@profile) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment