additional steps for custom routes after and after_back
juansecaro opened this issue · comments
Juanse Caro commented
Are there additional steps after adding the controller (following the steps in readme.md)?
I have done exactly that and they are not even called. I am using 2.1.0.
class Admin::MasqueradesController < Devise::MasqueradesController
protected
def after_masquerade_path_for(resource)
"/companies/#{current_user.id}"
end
def after_back_masquerade_path_for(resource)
"/admin/userss"
end
end
Thank you.
Juanse Caro commented
I am sorry, I didn't read the clearly stated paragraph.
Dont forget to update your Devise routes to point at your Custom Authorization Controller
My fault. I apologize.
Juanse Caro commented
Commented