Hi,
Is there a way to capture the generated HTML (e.g. for show.html.erb) from inside a Rails application?
I need to send an e-mail to users with the same HTML as displayed on the browser.
Thank you in advance.
Tadatoshi
Hi,
Is there a way to capture the generated HTML (e.g. for show.html.erb) from inside a Rails application?
I need to send an e-mail to users with the same HTML as displayed on the browser.
Thank you in advance.
Tadatoshi
Tadatoshi Takahashi wrote:
Is there a way to capture the generated HTML (e.g. for show.html.erb) from inside a Rails application?
Have a look at render_to_string.
Peace.
Thank you, Phillip.
I will try that.
Sincerely, Tadatoshi
Hi, Phillip,
render_to_string worked very well.
Thank you for your help.
Sincerely, Tadatoshi