metautonomo.us

Confounding URL typists since 2007.

Monthly Archives: February 2008

Parsing the WoW Armory with Rails

4 Comments

So, in the not-too-distant future, I’m going to need to tie this app I just deployed into a third-party API that exposes data via XML. In the interest of familiarizing myself with working with XML output from non-ActiveResource sources in Rails, I decided to use a publicly-accessible resource many of you may be familiar with: The World of Warcraft Armory. Since my actual source API isn’t available yet, seems as good a choice as any. Plus, given the notorious unreliability of the armory, it also gave me a good chance to see how exception handling needs to be set up.
Read the rest of this post

Filed under Uncategorized
Feb 22, 2008

A little Subversion gotcha

0 Comments

At the office, my development machine is (unfortunately) a Windows box. I was setting up Capistrano for an app I was about to deploy, and checked the deploy.rb, Capfile, and script/spin files into Subversion from my Windows machine. This led to an interesting little gotcha.
Read the rest of this post

Filed under Uncategorized
Feb 12, 2008

Simple Model Search with Rails

1 Comment

One of the first things I think that many new Rails developers set out to do is to find a way to handle basic search forms in a reusable way.

Inspired by Jamis Buck’s refactoring of a Report model and controller at The Rails Way, this is one I recently worked out for the first Rails application I’ve gotten to develop for my employer, a database that tracks AUP violations and other offenses by our customers.
Read the rest of this post

Filed under Uncategorized
Feb 7, 2008