(article restored from a previous version)
YAML (rhymes with “camel”) is a readable text format for data structures.
YAML and Rails: More info:Create your own YAML configuration file:
require 'yaml' class ApplicationController < ActionController::Base before_filter :configure_app # Your code here... def configure_app @config = YAML::load(File.open("#{RAILS_ROOT}/config/config.yml")) end end
(article restored from a previous version)
YAML (rhymes with “camel”) is a readable text format for data structures.
YAML and Rails: More info:Create your own YAML configuration file:
require 'yaml' class ApplicationController < ActionController::Base before_filter :configure_app # Your code here... def configure_app @config = YAML::load(File.open("#{RAILS_ROOT}/config/config.yml")) end end