RichardOnRails
2010-Feb-20 13:02 UTC
Running script/server leads to executing incorrect version of initalizer.rb
Hi All, 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 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? 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
RichardOnRails
2010-Feb-20 13:05 UTC
Re: Running script/server leads to executing incorrect version of initalizer.rb
Sorry, duplicate posting. (I forgot the title I last posted under and failed to flag it so I could find it when it received responses.) On Feb 20, 8:02 am, RichardOnRails <RichardDummyMailbox58...-FtJgd9dCuO3JTKoYRCtP1UEOCMrvLtNR@public.gmane.org> wrote:> Hi All, > > 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 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? > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
RichardOnRails
2010-Feb-20 14:35 UTC
Re: Running script/server leads to executing incorrect version of initalizer.rb
Previous topic is "Script/server reference wrong version of initializer.rb" I apologize for the duplicate posting. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.