When a user signs up with Devise, I want to check if their email address contains @mysite.com, and if so, create a new record in a table with the new user's ID.
I've been looking through the Devise docs for a way to take action after a user signs up (since I need their ID for associations), but all I've found is after_sign_up_path_for which is just a path.
Any ideas?
class RegistrationsController < Devise::RegistrationsController
def create
super
# I was hoping "super" creates the new user, and now I would have access to current_user.id, but that doesn't appear to be true.
end
end