Ralph Shnelvar wrote in post #962803:
> I am developing a website that does not use AJAX.
>
> What I would like to be able to do on the server side is find the point
> in RoR (assuming it exists) where the HTML is "rendered" and capture
> that string so that I can manipulate it for my purposes.
>
> To be a little clearer, the user at their browser can do a View Page
> Source and then save that HTML to a file.  I would like to generate
> (i.e. capture) exactly the contents of that string/file on the server
> side so that I can save it on the SERVER.
>
> I am not asking for the client to send back the contents of the View
> Page Source back to the server.  I do not wish to interfere with the
> sending of the HTML to the client.   I just want to get a copy of that
> HTML so that I can save it to a file on the server and have that file
> have exactly the same contents as a View Page Source and then Save File
> as that file would be on the client.
>
> Is this possible and/or easy to do?

Sure.  Use render_to_string.

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Sent from my iPhone

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to