After confirmation, I would like to send the user to a screen where they enter in some profile details. I have seen other people online talking about how they have done this, however I haven't seen anyone discussing this error. Any help would be appreciated!
I have overridden the confirmations controller with:
class ConfirmationsController < Devise::ConfirmationsController
def after_confirmation_path_for(resource_name, resource)
redirect_to new_profile_path
end
end
And I have added the following to my routes:
devise_for :users, :controllers => { :confirmations => "confirmations" }
However, after confirming an account, I get the following error in browser:
AbstractController::DoubleRenderError
in ConfirmationsController#show
Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".