Fork me on GitHub
Production Hacks

ActionMailer MissingTemplate error in Rails 2.3

July 20th 2010

In Rails 2.3, if you’re using implicit multipart emails for your ActionMailer views (the content type is part of the file name), ActionMailer will have problems locating the correct template during tests and background jobs. I ran into this problem when setting up background emailing with resque_mailer

Redis API access logger

July 10th 2010

We just launched a REST API for our production Rails app and we wanted to keep track of the API usage by user. Inserting a row into MySQL or incrementing an existing counter on every request had inevitable scaling issues. We needed something lightweight and fast, Redis was a perfect candidate for the job…