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
%script
print();
=ALL DATA TO PRINT
PROBLEM IS THAT : I want to print data with out rendering to
print.html.haml page.
means when i click on “print” link on profile page it directly open
print dialog box and print data from “print.html.haml” file
How can i do that?
Thanks,
Vikas