# Passing XSL output from a controller to a view

**URL:** <https://www.ruby-forum.com/t/passing-xsl-output-from-a-controller-to-a-view/129472>\
**Category:** Rails\
**Created:** [February 18, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/passing-xsl-output-from-a-controller-to-a-view/129472 "2008-02-18T22:29:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9de0a6/32.png) [@andya](https://www.ruby-forum.com/u/andya)\
**Post date:** [February 18, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/passing-xsl-output-from-a-controller-to-a-view/129472/1 "2008-02-18T22:29:21Z")

</div>

Hi,

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.
