September 2006
1 post
7 tags
Squirrel - Natural Looking Queries for Rails
I’ve never liked how you query the database in ActiveRecord. Sure it works, but so does writing straight SQL. Neither seem very integrated into the framework. So after thinking about it, I figured I’d do it one better and make something a little more Rubyish looking. So I made Squirrel.
posts = Post.find do
user.email =~ "%thoughtbot%"
tags.name === %w( ruby rails )
created_on...