I'm confused about how to properly use figaro with Rails 4.2. So in application.yml (which is checked into .gitignore), I have this:
secret_key_base: 123456
And then in secrets.yml, I have this:
development:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
The gem should be handling the ENV part of setting the credentials, according to everything I've read. Why is this not working?
EDIT 1:
In application.yml I have: mandrill_user_name: email@example.com
and mandrill_password: 1234567890
And in development.rb I have:
config.action_mailer.default_url_options = { :host => "localhost:3000" }
config.action_mailer.smtp_settings = {
address: "smtp.mandrillapp.com",
port: 587,
domain: "localhost:3000",
authentication: "plain",
enable_starttls_auto: true,
user_name: ENV["mandrill_user_name"],
password: ENV["mandrill_password"]
}
Shouldn't application.yml be taking care of this?