I'm just getting started with Rails, and I'm trying to adapt one of my Ruby programs to the Rails environment. My controller produces an HTML document as part of its work, which I want to display in my rhtml view. Is there a way to pass the entire document object saved as a variable to my view? And how would the view code look? Or is there a better way to achieve the same result? Thanks.