Using a different layout/styleshheet

Hi,

I have a view that I use to display and capture data. Once the user
has input the required data, I then need to be able to print the view.
I know that I can setup a stylesheet to take care of the page layout
but it is not clear to me how I will make the print view call the new
layout.

If anyone could clarify this or point met in the right direction, I
would be most grateful.

Regards,

Paul

Using a different layout/styleshheet

In the action you render the template, use something like this:

def my_action
#do something
render :layout=>‘mylayout’
end

having a mylayout.rhtml in app/views/layouts/

Thanks Matias, just the pointer I needed.

Paul