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 Making Configuration Files with YAML: Revised – Innovative Thought 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 toughest question but, I would also like to know why isn’t that constant available in the views? Do I have to wrap that constant in a Ruby object of some sort? I’m just looking for the best way to do this.

-E

Forgot the code: https://gist.github.com/958485

In your doamins.rb you have

DOMAINS_CONFIG = YAML.load(raw_config)[RAILS_ENV]

But in your application.html.haml you’re missing a ‘S’ in DOMAIN_S_CONFIG

DOMAIN_CONFIG.to_yaml

Regards, Jens

Didn’t see that, thanks.