Here is some sample code from a plugin that I developed: http://sra.rubyforge.org/svn/plugins/simply_rich_association/lib/simply_rich_association.rb
Here is some sample code from a plugin that I developed: http://sra.rubyforge.org/svn/plugins/simply_rich_association/lib/simply_rich_association.rb