Sql_wrangler is a project mainly written in Ruby, it's free.
A simple ORM alternative that makes it easier to deal with SQL queries in ruby
Makes it easier to deal with SQL queries and handle their results. You can see how it works by looking at the unit tests.