How to use secrets.yml for API_KEYS in Rails 4.1?
First rule: DO NOT CHECK-IN secrets.yml into the repo. All right, here’s how a secret.yml would look: development: secret_key_base: 6a1ada9d8e377c8fad5e530d6e0a1daa3d17e43ee… # Paste output of $ rake secret here for your dev machine. test: secret_key_base: _your_secret_ as above production: secret_key_base: <%= secure_token %> STRIPE_PUBLISHABLE_KEY: ‘Put your stripe keys for production’ STRIPE_SECRET_KEY: ‘Put actual keys for production … Read more