Thanks for responding to my plight. > Have you frozen the earlier version of Rails into your app? Look in > your apps vendor folder for a folder rails. If it is there remove it.
My app is RTS. The RTS\vendor folder has no files and one empty folder: plugins. Furthermore, I've never been sophisticated in Rails to use "freeze". However, I'm new to the 2.0 version and tried to solve problems I had by downloading/executing the Chapter 1 sample from Rippen's "Pro RoR". It referenced ver. 1.2.3, so I downloaded/installed 1.2.3 yesterday. That led to other problems so I abandoned Rippen's example. Is it more than coincidence that the problematic version of initializer was 1.2.3?? Again, thanks for looking into my problem, Richard On Feb 20, 3:23 am, Colin Law <[email protected]> wrote: > On 20 February 2010 03:21, RichardOnRails > > > > <[email protected]> wrote: > > 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. > > Have you frozen the earlier version of Rails into your app? Look in > your apps vendor folder for a folder rails. If it is there remove it. > > Colin -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

