RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: james-abelsoninfo
So apparently when ENV is set in the console it's not available to the app.
Any suggestions on a way to set the ENV stuff securely? The code is hosted on Github so having the keys in the source code is a no-no.
If I'm setting the ENV['TWITTER_SECRET'] and ENV['TWITTER_KEY'] variables in the console how can I access them in the views?
So apparently when ENV is set in the console it's not available to the app.
Any suggestions on a way to set the ENV stuff securely? The code is hosted on Github so having the keys in the source code is a no-no.
If I'm setting the ENV['TWITTER_SECRET'] and ENV['TWITTER_KEY'] variables in the console how can I access them in the views?