Wednesday, 4 September 2013

Login as user, render view from ActionMailer

Login as user, render view from ActionMailer

I want to email users the rendered html of a particular controller action
signed in as a particular user. Not sure how to render an email html
entirely from an controller action with session information. Doing this in
a background task (delayed_job). Any way to render an arbitrary controller
action in an ActionMailer?

No comments:

Post a Comment