Tech - June 2007 Archives

Helping out ActionMailer

ActionMailer is the “red-headed step-child” of Rails. Is it a model? Is it a view? Is it a controller? It’s really none of the above, but sits in no-man’s land. In addition it’s usage pattern is kind of strange, you call the class with create_ or deliver_ in front of the method name that represents the message you want to send!

That craziness aside, I encountered a particular problem today that ActionMailer made rather opaque. The solution is a peek at how you can bend Rails to your will using the power of Ruby.

Schroedinger's LOLCat

Courtesy of I CAN HAS CHEEZEBURGER?