When I run ruby script/server, I get the error message:
send': undefined methodsession=’ for
Why did Ruby reference a rails-1.2.3 gem, rather than a 2.3.5 gem,
since that’s what I specified in environment.rb:
RAILS_GEM_VERSION = ‘2.3.5’ unless …
and I have no system environment variable named RAILS_GEM_VERSION.
The error message is probably appropriate for the 1.2.3 Rails version
because initializer.rb at line 328 is using meta-programming likely to
produce the the variable “session=”.
However I specified Rails gem version 2.3.5, so the 1.2.3 version of
initializer.rb should not have been invoked. And the 2.3.5 version of
initializer looks fine on this score.
Could I have done something to cause this error?