App level configuration for your Rails apps
1 require 'yaml'
And at the bottom of your /config/environment.rb:
1 APP_CONFIG = YAML::load(File.open("#{RAILS_ROOT}/config/appconfig.yml"))
Now your YAML variables are accessible anywhere from your controllers or views like so:
1 APP_CONFIG["variable"]
Easy peasy.