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
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to