title: Setting Environment Variables in Rails 3 (Devise + Omniauth)
body: <p>I've been trying to figure out how Ryan Bates, in his <a href="http://railscasts.com/episodes/360-facebook-authentication" rel="noreferrer">Facebook Authentication screencast</a>,  is setting the following "FACEBOOK_APP_ID" and "FACEBOOK_SECRET" environment variables.</p>
  
  <pre><code>provider :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_SECRET']
  </code></pre>
  
  <p>There are similar-ish questions around, but no answers that I've been able to get to work on Rails 3.2.1.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>As of May 2013, my preferred way to handle ENV variables is via the <a href="https://github.com/laserlemon/figaro" rel="noreferrer">Figaro gem</a></p>