# Write to file instead of rendering to screen

**URL:** <https://www.ruby-forum.com/t/write-to-file-instead-of-rendering-to-screen/131489>\
**Category:** Rails\
**Created:** [March 10, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/write-to-file-instead-of-rendering-to-screen/131489 "2008-03-10T17:04:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![agilehack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d2c977/32.png) [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Post date:** [March 10, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/write-to-file-instead-of-rendering-to-screen/131489/1 "2008-03-10T17:04:26Z")

</div>

Radiant gurus please help! I know this should be for the Radiant  
mailing list, but very low activity there.

I am trying to create functionality to write the HTML(page(s)) to a  
file instead of rendering to screen. I want to capture the html of a  
new or modified page (and FTP it ultimately). I know my code needs to  
be somewhere in the show\_page, process\_page area but I don’t know  
exactly where it should go or what the code would look like.

use case:  
user creates or modifies a page in radiant.  
user presses button ‘write to file’  
the page html is then captured and written to file before rendering to  
screen.

please help
