Friday, February 19, 2010

[Rails] Script/server reference wrong version of initializer.rb

Hi All,

In my Rails app RTS, I specify:
RAILS_GEM_VERSION = '2.3.5'
in \RTS\config\environment.rb

I have no Windows environment variable named RAILS_GEM_VERSION

When I run ruby script/server, I get the error message:

K:/_Utilities/ruby186-26_rc2/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/
lib/initializer.rb:328:in `send': undefined method `session=' for
ActionController::Base:Class (NoMethodError)

Why did the server script reference a rails-1.2.3 gem, rather than a
2.3.5 gem? The 1.2.3 version of initializer.rb uses metaprogramming
which likely produced the variable name "session=" which might have
been correct in the 1.2.3 context. But the 2.3.5 version of
initializer.rb should have been invoked and it looks fine on this
score.

So, what's up?

TIA,
Richard

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate