Setting Environment Variables in Rails 3 (Devise + Omniauth)
You could take a look at the comments: You can either set environment variables directly on the shell where you are starting your server: FACEBOOK_APP_ID=12345 FACEBOOK_SECRET=abcdef rails server Or (rather hacky), you could set them in your config/environments/development.rb: ENV[‘FACEBOOK_APP_ID’] = “12345”; ENV[‘FACEBOOK_SECRET’] = “abcdef”; An alternative way However I would do neither. I would create … Read more