title: RoR environment in Ruby standalone script
body: <p>I want to run a standalone ruby script in which I need my RoR environment to be used. Specifically, I need my models extending ActionMailer and ActiveRecord. I also need to read the database configuration from my database.yml. 
  How do I go about it?</p>