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

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


Regards, Jens

Jens Fahnenbruck
Sent with Sparrow

Didn’t see that, thanks.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs