I want to be able to write a script in Ruby which regularly consumes an
XML feed from a fixed source, re-formats it, produces a large file for
web delivery, and updates a database with the contained information.
It’s simple - just running a script from a cron job, and some basic data
manipulation… But I’d prefer to use the Rails database mapping
constructs than roll my own.
What steps do I need to take to include ActiveRecord and my database
models in a Ruby script?