03 Nov
Using Rails Models from within an external script
For some one off scripts I wanted to make use of a couple of models I created. I had no idea how simple it would be to load the rails environment from within a script:
require 'config/environment.rb'
p MyModel.find(:first)
Sweet! Rails is so… thoughtful.

thank you for pointing that out, i could not imagine that this was just as easy
July 25th, 2009 at 3:32 am