pandastream/panda_gem — Issue #6: uninitialized constant RAILS_ENV (NameError)
Author: Znow
Created: 2011-11-14 14:26:17+00:00
State: open

Hi!

I was following the guide at http://www.pandastream.com/docs/integrate_with_rails , for integrating video upload for my app.

Im running Rails 3.1.1 and Ruby 1.9.3-p0

I stumpled upon an error, when I wanted to fire up my rails console:

> /config/initializers/panda.rb:1:in `': uninitialized constant RAILS_ENV (NameError)

I fixed this by changing:

Panda.configure((ENV['PANDASTREAM_URL'] || YAML::load_file(File.join(File.dirname(__FILE__),"..", "panda.yml"))[RAILS_ENV])) <- RAILS_ENV with Rails.env

that should be updated in the guide please.