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 T. 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
On Oct 18, 9:36 pm, Phillip K. [email protected]
Hi, Phillip,
render_to_string worked very well.
Thank you for your help.
Sincerely,
Tadatoshi
On Oct 18, 10:59 pm, tadatoshi [email protected]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs