In January 2006 I released two plugins for Rails. They are no longer accessible through Subversion (they used to be at http://tfletcher.com/svn/rails-plugins/), but can be downloaded from here instead.
riff — for detecting differences between two ActiveRecords.
qount — for keeping a simple tally of database queries executed within a block.
17th February 2008