0

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

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.