rails 3, how use an ENV config vars in a Settings.yml file?
In my settings.yml file I have several config vars, some of which reference ENV[] variables. for example I have ENV['FOOVAR'] equals WIDGET I thought I could reference ENV vars inside <% %> like this: Settings.yml: default: cv1: Foo cv2: <% ENV['FOOVAR'] %> in rails console if I type > ENV['FOOVAR'] => WIDGET but > Settings.cv1 => Foo (works okay) > Settings.cv2 =>nil (doesn't work???) use following:- default: cv1: Foo cv2: <%= ENV['FOOVAR'] %> arpiagar The above solution did not work for me. However, I found the solution on How do I use variables in a YAML file? My .yml file contained