From inventing an invitable readme :
After the invitation is accepted, the invitee will be redirected to after_accept_path_for (resource) , which by default matches the after_sign_in_path_for parameter. If you want to redefine the path, redefine the invitation controller and define the after_accept_path_for method. This is useful in the general case when a user is invited to a specific place in your application. Learn more about Devise README, the "Filters and Helper Controllers" section.
source share