The Riff plugin lets you detect compare two rows; specifically, it will return an array of differences between the two fields.
This plugin is used in chapter 4 of Practical Rails Plugins.
Author: Tim Fletcher
Installation:
To install the plugin, download the source from http://tfletcher.com/dev/rails-plugins and unzip into your vendor/plugins folder.