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 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.


Forgot the code:

In your doamins.rb you have


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


Regards, Jens

Didn’t see that, thanks.