title: saving html from ruby on rails output to a variable
body: <p>I have a ruby on rails website. The page is dynamically loaded and generated using ruby and rails. However, I'd like to also generate a static .html page to ease my server rather than calling the rails page every time.</p>
  
  <p>In PHP I know how to capture the output buffer using ob_start() and ob_get_contents() to get the outputted text.</p>
  
  <p><strong>How do I capture the output from my rails page into a variable?</strong></p>
  
  <p>EDIT: The reason I want to do this is so that I can save my page as .html for use on other machines. So I generate the HTML using ruby and distribute to others in a format they can view.</p>