Updated: Rails3 Custom Environment Variables
Posted by Jason Noble on 12/03/2011 in ruby on rails | ∞
A while back, I wrote a blog post on adding custom environment variables to Rails3. This has gotten much easier with a change made by Jose Valim back in March. The change allows you to create your own custom configuration variables like so: [ruby] # config/environments/development.rb Demo::Application.configure do […] config.json_url = "http://www.domain.com" […] end [/ruby] […]