views:

26

answers:

1

I'm storing configuration variables for different environments in the production.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?

+1  A: 

I've been pointing people towards the settingsgem lately. Settings Gem

Mark Turner