Ernie Miller

No, I don't work in NYC, DC, or the valley, and I'm cool with that.

RSS Feed

Tag Archives: meta_where

MetaWhere 0.5.2 – Debug your SQL

0 Comments

I just pushed version 0.5.2 of MetaWhere after some discussion on the Rails core mailing list, adding the debug_sql method. What’s the difference between debug_sql and to_sql, you ask?
Read the rest of this post

Filed under Blog
Jul 9, 2010

MetaSearch and MetaWhere 0.5.0 released!

1 Comment

With the release of Rails 3.0.0.beta4 and Arel 0.4.0, all of the pieces have come together in gem form to allow a new gem release of both MetaSearch and MetaWhere.

I’m really excited about these releases, as they’ve been a long time coming. The last MetaSearch gem release was way back in March, while the last MetaWhere gem was released in April — this felt like an eternity in the fast-moving edge Rails world. :) I hope you enjoy the new release, and thanks in advance for submitting any bugs you find!

Now, on to what’s new since the last gem releases…
Read the rest of this post

Filed under Blog
Jun 8, 2010

Arel merge!

0 Comments

Using MetaSearch and MetaWhere is about to become simpler, now that most of my Arel changes have been merged into rails/arel. Once a new Arel gem is released, I’ll make a new gem release of both of my libraries, as well. Thanks to Emilio Tagua (miloops) and Bryan Helmkamp (brynary) for the feedback and eventual merge!

Filed under Blog
May 20, 2010

MetaUpdates

0 Comments

MetaSearch and MetaWhere updates, I mean. I spent some time over the weekend (and technically tonight, as well) wrapping up some nifty new features on MetaSearch and MetaWhere. Read on for the highlights.
Read the rest of this post

Filed under Blog
Apr 26, 2010

Introducing MetaWhere

8 Comments

Recently, I spent some time working on a patch to Rails core to allow ActiveRecord::PredicateBuilder to allow more powerful queries — that is, support for additional Arel predicates beyond Equality and In. If you’re not familiar with PredicateBuilder, that’s where the magic happens when converting the arguments you supply to ActiveRecord::Relation#where or ActiveRecord::Base#find‘s :conditions hash into Arel predicates for a query. Anyway, after a brief discussion with Pratik on #rails-contrib, where he shared a bit of insight into his thoughts on tackling the same problem and encouraged me to create a plugin, I came up with a bit of a hybrid — something that I think scratches this particular itch pretty well for me: MetaWhere. Read on for how it works. [Update: If you're arriving via Ruby5 or the Rails weblog, you might also be interested in the latest MetaWhere updates, why I forked Arel, or the main MetaWhere page. Thanks for visiting!]
Read the rest of this post

Filed under Blog
Apr 15, 2010

About

I'm Ernie Miller. But then, you probably knew that by looking at the page title, or the URL. I'm a Ruby programmer in Louisville, Kentucky. This blog used to be called "metautonomo.us", which I thought was kind of clever, but nobody, including me, could type it. Lesson learned.