ddoherty03
(ddoherty03)
1
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).
ddoherty03
(ddoherty03)
3
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.