lundi 24 juillet 2017

Devise redirect path after sing-up and before confirmation

I have implemented the devise gem on my app and I want to redirect to a specific path after sign_up. I have this method in the registration_controller.rb but its does not work, it redirects to the root path instead of the specified path. I also have devise :confirmable set up but I'm delaying the sent confirmation email until later.

def after_sign_up_path_for(resource)
  new_transaction_path(session[:registration_params])
end

And returns the following flash notice: translation missing: en.devise.registrations.store.signed_up_but

How can I make this work?

Aucun commentaire:

Enregistrer un commentaire