# Printing in rails

**URL:** <https://www.ruby-forum.com/t/printing-in-rails/149926>\
**Category:** Rails\
**Created:** [October 1, 2008, 9:08am UTC](https://www.ruby-forum.com/t/printing-in-rails/149926 "2008-10-01T09:08:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaikishan\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ad7895/32.png) [@Jaikishan\_J](https://www.ruby-forum.com/u/Jaikishan_J)\
**Post date:** [October 1, 2008, 9:08am UTC](https://www.ruby-forum.com/t/printing-in-rails/149926/1 "2008-10-01T09:08:27Z")

</div>

Hello,  
Could anyone point me to some tutorial/example which speaks about how to  
print some data (basically a HTML table filled with data) ? Here print  
means  
printing on a paper with printer:).

–  
Thanks,  
Jaikishan

---

<div class="post-metadata">

**Author:** ![Jaikishan\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ad7895/32.png) [@Jaikishan\_J](https://www.ruby-forum.com/u/Jaikishan_J)\
**Post date:** [October 1, 2008, 9:37am UTC](https://www.ruby-forum.com/t/printing-in-rails/149926/2 "2008-10-01T09:37:12Z")

</div>

On 01 Oct 2008, at 08:55, Jaikishan J. wrote:

> Could anyone point me to some tutorial/example which speaks about  
> how to print some data (basically a HTML table filled with data) ?  
> Here print means printing on a paper with printer:).

Solution 1:

> **[CSS Design: Going to Print](https://alistapart.com/article/goingtoprint/)**
>
> Say no to “printer-friendly” versions and yes to printer-specific style sheets. CSS expert Eric Meyer shows how to conceive and design print style sheets that automatically format web c…

> **[Little CSS print stylesheet tip](https://signalvnoise.com/posts/554-little-css-print-stylesheet-tip)**
>
> I’ve seen printer stylesheets designed a variety of different ways. But any way you slice it, the most common element in a print stylesheet is usually the display: none; rule. Printer sheets are usually about printing less rather than printing...

[http://www.htmlgoodies.com/beyond/javascript/article.php/3471121](http://www.htmlgoodies.com/beyond/javascript/article.php/3471121)

Solution 2 (expensive, but amazing):  
[http://sublog.subimage.com/2007/05/29/html-css-to-pdf-using-ruby-on-rails](http://sublog.subimage.com/2007/05/29/html-css-to-pdf-using-ruby-on-rails)

Solution 3:  
[http://www.google.com/search?client=safari&rls=en-us&q=pdf+rails&ie=UTF-8&oe=UTF-8](http://www.google.com/search?client=safari&rls=en-us&q=pdf+rails&ie=UTF-8&oe=UTF-8)

It’s amazing what 1 minute of googling brings up isn’t it?

Best regards

Peter De Berdt
