Ernie Miller

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

RSS Feed

Tag Archives: rails

MetaSearch, MetaWhere, and Rails 3.0.3

2 Comments

Well, Rails 3.0.3 is out, and it includes all of that ARel 2.x goodness I was rambling about a few weeks ago. Anyway, I just wanted to make a quick post here because I haven’t gotten around to updating docs with details on how to use all the new toys.
Read the rest of this post

Filed under Blog
Nov 21, 2010

MetaWhere Is About To Get Func-y

12 Comments

The next release of MetaWhere is shaping up to add a couple of cool new features to ActiveRecord — control over join type, and access to SQL functions supported by your database. Before I go into details about them, I’d like to ask those of you who are testing Rails 3-0-stable branch and ARel master already to try out the arel-2.0 branch, where these fun changes live. I’d appreciate feedback on how well they work for your apps. Now, on with the show. Read the rest of this post

Filed under Blog
Nov 2, 2010

Converting Your Code to ARel 2.0

3 Comments

If you haven’t read Aaron Patterson’s post about the massive rewrite of ARel that happened for version 2.0, do yourself a favor, and go read it. It’s good stuff, and Aaron’s work rewriting ARel was a monumental feat of awesomeness. Plus, it’s responsible for tipping me off that someone else did a momentous rewrite: porting the venerable zombo.com to HTML5. Back? Good. Aaron mentioned, “for people using ARel directly, some methods have been removed, but all previous functionality should be available in one way or another.” Since I spent some time making sure that the old functionality was available to support the arel-2.0 branch of MetaSearch and MetaWhere, I thought I might tackle explaining some of the changes you’ll see.
Read the rest of this post

Filed under Blog
Oct 15, 2010

MetaSearch 0.9.7(.1)(.2)!

3 Comments

We’re getting dangerously close to 1.0 here. (Update:: not that dangerously close. Grab 0.9.7.12 if you run into compatability issues with MetaWhere.) Squashed a silly bug or two, and added support for two features often requested by Searchlogic switchers, searching against multiple columns with _or_, and polymorphic belongs_to association searches. I’ve also switched to using left outer joins for searches now. This has its pros and cons. SQL geekery past the break.
Read the rest of this post

Filed under Blog
Oct 12, 2010

The Underused collection_singular_ids Method

2 Comments

I was talking to someone a few weeks back, and he was jumping through a bunch of hoops to create fields in his form that allowed him to set associated objects. “You know about the collection_singular_ids methods, right?” I asked. “No, please explain,” he said. So I did. I wanted to write a quick post here, as well, in case it might help someone else.
Read the rest of this post

Filed under Blog
Oct 2, 2010

MetaSearch::Builder#relation and you

2 Comments

A recurring question I have been seeing regarding MetaSearch has been the need to modify or access the relation generated by the search. That’s precisely why MetaSearch::Builder#relation exists, so I thought I’d make a quick post detailing its usage.
Read the rest of this post

Filed under Blog
Sep 20, 2010

Rails 3.0 release!

0 Comments

So, the Rails team released Rails 3.0 yesterday, on my birthday. I am claiming it as my birthday present. Anyway, I ran a quick test on MetaWhere and MetaSearch and everything is still passing, so we should be good to go! Let me know if it’s not the case.

Filed under Blog
Aug 30, 2010

Why MetaWhere 0.9.2 raises errors (and why you’ll thank me later)

3 Comments

If you updated MetaWhere recently, and your application started raising MetaWhereInAssociationErrors, I’m sorry. But not too sorry. Because that error probably saved you from running into strange, confusing problems later. Let me explain.
Read the rest of this post

Filed under Blog
Aug 26, 2010

MetaWhere updates, in more detail

0 Comments

With Rails 3.0 RC released, I decided I’d better step up the pace on the promise I made to cover recent updates to MetaWhere and MetaSearch in more detail prior to Rails 3 final. Tonight, I’d like to spend some time on detailing the changes to MetaWhere since 0.3.3.
Read the rest of this post

Filed under Blog
Jul 26, 2010

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

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.