ruby on rails - How to manually send a Devise email? -


i want manually send devise confirmation email user of app. this:

u = user.last devise::mailer.confirmation_instructions u 

but devise's confirmation_instructions takes 3 parameters, second being token (according documentation) , third being hash. how in order able send these emails?

here’s confirmationscontroller sends email:

self.resource = resource_class.send_confirmation_instructions(resource_params) 

have tried this?

u.send_confirmation_instructions 

edit add devise::mailer-based method:

u.send(:generate_confirmation_token) devise::mailer.confirmation_instructions(u, u.instance_variable_get(:@raw_confirmation_token)) 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -