Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: rtacconi
I am using:
CONFIG = YAML.load(File.read(File.join(File.dirname(__FILE__), 'application.yml')))[Rails.env]
It is one line not two and it does not use slashes for OS compatibility.
I would be nice to see a Rails setup using Chef and/or Puppet.