metautonomo.us

Confounding URL typists since 2007.

Monthly Archives: October 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