How to print data with out rendring page?

Hi all,

I have following code in haml form that print current webpage

I call this page from another page like user profile page like

=link_to 'Print', print_user_path(@user)

this calls "print.html.haml"

print.html.haml