search for: raw_config

Displaying 3 results from an estimated 3 matches for "raw_config".

Did you mean: randconfig
2008 Apr 15
2
environment.rb uninitialized constant when starting console
I have the following code in environment.rb: require File.join(File.dirname(__FILE__), ''boot'') raw_config = File.read(RAILS_ROOT + "/config/config.yml") APP_CONFIG = YAML.load(raw_config)[RAILS_ENV] This works fine when running the server, but if I try and start a console I get: Loading development environment. ./script/../config/../config/environment.rb:15:NameError: uninitialized constant...
2010 Sep 07
0
numeric key in yam file to be used by config file
I am using a YAML file for my app config, loading it : ---- raw_config = File.read(RAILS_ROOT + "/config/app_config.yml") APP_CONFIG = YAML.load(raw_config)[RAILS_ENV].symbolize_keys --- It''s running well as long as I use alpha keys development: seve: api_token: e09cba8653489749388797926512bb75 then APP_CONFIG[:seve]["api_token&quot...
2011 May 06
3
Reading Yaml files and getting an 'uninitialized constant ActionView::CompiledTemplates' Error
Want to load a configuration from a yaml file ala config/database.yml. I am following http://blog.innovativethought.net/2009/01/02/making-configuration-files-with-yaml-revised/ but, I am getting uninitialized constant ActionView::CompiledTemplates::DOMAIN_CONFIG from rails. I''ve documented my code to make this simpler. I''m running Rails 3.0.7 I know isn''t the