What's the Right Rails Prologue for a Standalone Program

I am trying to write a small program to exercise certain of my Rails
classes without having to go through a browser.

I have a file that like this:
########### filer_convert.rb #################
require File.dirname(__FILE__) + '/../../config/boot'
require 'filer'

Filer.convert(10)

You need to include environment.rb, not boot.rb (boot.rb will load
Rails itself, but not much actually happens without a defined Rails
environmen).

Thanks, pharrinton. That did it. I still get a strange internal
error message when I run it under komodo, but I assume that's
a komodo issue.