This post originated from an RSS feed registered with Ruby Buzz
by Matthew Bass.
Original Post: Use helpers in your Rails PDF templates
Feed Title: Pelargir
Feed URL: http://feeds.feedburner.com/pelargir/
Feed Description: Musings on software and life from Matthew Bass. Regular posts on new web products, tips and tricks, etc.
The Rails PDF plugin is a dandy little thing. It wraps the PDF::Writer library for Ruby, allowing PDF templates to be defined like any other Rails view (with a .rpdf extension, of course).
One thing it doesn’t do is allow access to the parent controller’s helper from within a PDF template. It’s easy enough to patch [...]