There are many gems which do app configuration loading for ruby. However, you don’t really need a gem to do environment loading. Here is a snippet of code which does most of what you want.
1 | class EnvLoader |
And put this at the top of your application
1 | require_relative '../app/classes/env_loader.rb' |
Here are some specs
1 | # specs for it |
I am currently working on LiveForm which makes
setting up contact forms on your website a breeze.