Thursday, January 11, 2007

Incredibly Useful Rails Console Trick

There are already tons of kickass Rails console tricks, but this one is new to me: you can easily instantiate a Logger with STDOUT as its stream. So if you want to know exactly what SQL ActiveRecord is generating, it is utterly trivial to find out.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.