views:

378

answers:

1

So I am trying to implement easy_swf_upload but I'm running into an error right away. There's a session key, which is defined like this:

 session_key = RAILS_GEM_VERSION < "2.3.0" ? ActionController::Base.session[0][:session_key] : ActionController::Base.session_options[:key]

Since I have the most recent version of rails I get the second option. This helper defines a few things, in particular being:

  <div class="session_key">#{session_key}</div>
  <div class="session_id">#{CGI::escape(cookies[session_key])}</div>

I get the error at that last "session_id" line if I don't comment it out:

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.gsub

I don't know anything about these cookies keys and sessions. What could be going wrong?

A: 

thanks for your hint for changing the default rails session key, this really saves our ass!!!