Hi, Manisha Tripathy.
You can solve this problem by creating special css for printer,
<%= stylesheet_link_tag "print_style", :media => "print" %>
and in print_style.css
#header{ display:none; } and so on..
Hi, Manisha Tripathy.
You can solve this problem by creating special css for printer,
<%= stylesheet_link_tag "print_style", :media => "print" %>
and in print_style.css
#header{ display:none; } and so on..
Yes, in this case you just add css tag to page that you want to print. This css will be used when you run print command in your browser, becouse parameter :media set to "print". And you can specify look of a page when printed using the appropriate styles, for exalple to hide element with id="header" or with class="navigation" use
#header, .navigation{ display:none; }
Try to find more information on this topic using google query "css media print"
forgive me my english, I`m using google translate.