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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Phillip Koebbe
2008-Oct-19 01:36 UTC
Re: How to capture generated HTML and sending it in e-mail
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
tadatoshi
2008-Oct-19 02:59 UTC
Re: How to capture generated HTML and sending it in e-mail
Thank you, Phillip. I will try that. Sincerely, Tadatoshi On Oct 18, 9:36 pm, Phillip Koebbe <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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. > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
tadatoshi
2008-Oct-28 00:12 UTC
Re: How to capture generated HTML and sending it in e-mail
Hi, Phillip, render_to_string worked very well. Thank you for your help. Sincerely, Tadatoshi On Oct 18, 10:59 pm, tadatoshi <tadatoshi.mailingl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thank you, Phillip. > > I will try that. > > Sincerely,Tadatoshi > > On Oct 18, 9:36 pm, Phillip Koebbe <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > >TadatoshiTakahashi 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. > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---