Skip to content

Instantly share code, notes, and snippets.

@jpotts18
Created April 15, 2013 18:22
Show Gist options
  • Save jpotts18/5390163 to your computer and use it in GitHub Desktop.
Save jpotts18/5390163 to your computer and use it in GitHub Desktop.
# 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