Storing configuration variable in ruby on rails
I'm storing configuration variables for different environments in the product开发者_高级运维ion.rb and development.rb
production.rb
ENV['my_variable'] = 'val1'
development.rb
ENV['my_variable'] = 'val2'
Maybe exists another way to store variables for different environments. What is the best way?
I've been pointing people towards the settings
gem lately. Settings Gem
精彩评论