Oct 31

I’ve received my confermation that I’m signed up (and paid up) for the sold out Pragmatic Rails Studio happening here in Reston, VA on November 18 and 19. I’ll post my thoughts on the studio around the week of Thanksgiving.

Oct 30

Austin Ziegler has a great introduction to Creating Printable Documents with Ruby over at Artima. His article is part of the new Ruby Code & Style online journal.

Austin covers all of the basics in his article and, though I had to recompile ruby for Mac OS X, I was able to get through all of the examples. One thing that disappointed me about PDF::Writer was that it only supports JPG and PNG images (and for PNG only 8-bits images are supported). For my usage, I found the section on partial document generation the most useful since I have to generate bills from Ruby on Rails by modifying a standard boiler-plate letter.

If you’re interested in using FPDF instead, Robby has a good overview on generating PDF documents from an ERb template.

Oct 21

First, I’d like to apologize for the long delay in posting to my blog. My wife and I had our second child at the end of September and things have been hectic since then.

I was playing around with the ajax autocompletion code from script.aculo.us but couldn’t get it working in my own code. It turns out that in addition to prototype.js in your layout RHTML, you also need to include effects.js and controls.js, so the code looks as follows:

  <%= javascript_include_tag :defaults %>

Continue reading »

preload preload preload