Test the content-type of a response in Cucumber

Posted Over 13 years ago by Henning Koch.

The step definitions below allow you to write this in both Webrat and Capybara: When I follow "Download as PDF...

The LaTeX Font Catalogue

Posted Over 13 years ago by Lexy.
tug.dk

Gallery of fonts you can use without much hassle in LaTeX. The license of the fonts vary, but are all...

Request a non-HTML format in controller specs

Posted Over 13 years ago by Henning Koch.

If a controller action responds to other formats than HTML (XML, PDF, Excel, JSON, ...), you can reach that code in...

Fix permissions of temporary RTeX files (which are group and world-readable)

Posted Over 13 years ago by Thomas Eisenbarth.

We use RTeX for PDF exports. While converting LaTeX to PDF, RTeX opens a temporary file which has problematic permissions...

Debug Ruby code

Posted Over 13 years ago by Henning Koch.

This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...

Count lines of code

Posted Over 13 years ago by Tobias Kraze.

The following counts all the lines in all *.rb files in the app directory. Run several of these commands to...

MySQL replication how-to

Posted Over 13 years ago by Arne Hartherz.

This may be awkward to set up, but will work once you're done. Fun facts:

A List Apart: Articles: Unwebbable

Posted Over 14 years ago by Lexy.
alistapart.com

An example of the conundrum of transferring print documents to the web, one that has become legendary in some circles...

jspdf - Project Hosting on Google Code

Posted About 14 years ago by Lexy.
code.google.com

jsPDF is an open-source library for generating PDF documents using nothing but Javascript. You can use it in a...

Ruby Ghostscript by Shairon Toledo

Posted About 14 years ago by Lexy.
rghost.rubyforge.org

Ruby Ghostscript (RGhost) is a library for document developers wanting a quick and easy way to generate pdf files. It...

How to print from an iPad.

Posted About 14 years ago by Lexy.
thedailywh.at

michaeldv's awesome_print at master - GitHub

Posted About 14 years ago by Lexy.
github.com

Pretty print your Ruby objects with style -- in full color and with proper indentation

wkhtmltopdf - Project Hosting on Google Code

Posted Almost 14 years ago by Lexy.
code.google.com

Simple shell utility to convert html to pdf using the webkit rendering engine, and qt.

Rethinking PDF Creation in Ruby

Posted Almost 14 years ago by Lexy.
thinkrelevance.com

We're excited to announce PDFKit, an open source library that makes working with wkhtmltopdf a snap.