Iros
2008-Jun-02 13:07 UTC
Undefined method `store_full_sti_class='' for ActiveRecord::Base:Class (NoMethodError)
Hi everyone,
I created a new demo app with ''rails demo'' and proceeded to
try and
launch the server with ''ruby scripts/server''.
I get the following stack:
C:\railsProj\demo>ruby script/server
=> Booting Mongrel (use ''script/server webrick'' to force
WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
Exiting
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.991/lib/active_record/
base.rb:16
45:in `method_missing'': undefined method
`store_full_sti_class='' for
ActiveRecord::Base:Class (NoMethodError)
from C:/manyeyes/railsEdu/demo/config/initializers/
new_rails_defaults.rb:8
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.991/lib/
active_support/dependencies.rb:501:in `load''
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.991/lib/
active_support/dependencies.rb:501:in `load''
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.991/lib/
active_support/dependencies.rb:353:in `new_constants_in''
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.991/lib/
active_support/dependencies.rb:501:in `load''
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.991/lib/
initializer.rb:453:in `load_application_initializers''
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.991/lib/
initializer.rb:452:in `each''
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.991/lib/
initializer.rb:452:in `load_application_initializers''
... 30 levels...
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.991/lib/commands/
server.rb:39
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require''
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require''
from script/server:3
I have a fresh rails installation with the following gems:
*** LOCAL GEMS ***
actionmailer (2.1.0, 2.0.991.20080529111450, 2.0.991)
actionpack (2.1.0, 2.0.991.20080529111450, 2.0.991)
activerecord (2.1.0, 2.0.991.20080529111450, 2.0.991)
activeresource (2.1.0, 2.0.991.20080529111450, 2.0.991)
activesupport (2.1.0, 2.0.991.20080529111450, 2.0.991)
cgi_multipart_eof_fix (2.5.0)
fxri (0.3.6)
fxruby (1.6.12)
gem_plugin (0.2.3)
hpricot (0.6)
log4r (1.0.5)
mongrel (1.1.5)
rails (2.1.0, 2.0.991.20080529111450, 2.0.991)
rake (0.8.1, 0.7.3)
sources (0.0.1)
win32-api (1.0.4)
win32-clipboard (0.4.3)
win32-dir (0.3.2)
win32-eventlog (0.4.6)
win32-file (0.5.4)
win32-file-stat (1.2.7)
win32-process (0.5.3)
win32-sapi (0.1.4)
win32-sound (0.4.1)
windows-api (0.2.0)
windows-pr (0.7.2)
Ruby version:
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
Any ideas?
Thanks!
-Irene
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Jun-02 14:39 UTC
Re: Undefined method `store_full_sti_class='' for ActiveRecord::Base:Class (NoMethodError)
On 2 Jun 2008, at 14:07, Iros wrote:> > Hi everyone, > > I created a new demo app with ''rails demo'' and proceeded to try and > launch the server with ''ruby scripts/server''. > I get the following stack:Any particular reason you''re using rails 2.1RC when you''ve actually got 2.1 installed ? Fred> > > C:\railsProj\demo>ruby script/server > => Booting Mongrel (use ''script/server webrick'' to force WEBrick) > => Rails application starting on http://0.0.0.0:3000 > => Call with -d to detach > => Ctrl-C to shutdown server > ** Starting Mongrel listening at 0.0.0.0:3000 > ** Starting Rails with development environment... > Exiting > c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.991/lib/active_record/ > base.rb:16 > 45:in `method_missing'': undefined method `store_full_sti_class='' for > ActiveRecord::Base:Class (NoMethodError) > from C:/manyeyes/railsEdu/demo/config/initializers/ > new_rails_defaults.rb:8 > from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.991/lib/ > active_support/dependencies.rb:501:in `load'' > from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.991/lib/ > active_support/dependencies.rb:501:in `load'' > from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.991/lib/ > active_support/dependencies.rb:353:in `new_constants_in'' > from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.991/lib/ > active_support/dependencies.rb:501:in `load'' > from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.991/lib/ > initializer.rb:453:in `load_application_initializers'' > from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.991/lib/ > initializer.rb:452:in `each'' > from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.991/lib/ > initializer.rb:452:in `load_application_initializers'' > ... 30 levels... > from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.991/lib/commands/ > server.rb:39 > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `gem_original_require'' > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require'' > from script/server:3 > > > I have a fresh rails installation with the following gems: > *** LOCAL GEMS *** > > actionmailer (2.1.0, 2.0.991.20080529111450, 2.0.991) > actionpack (2.1.0, 2.0.991.20080529111450, 2.0.991) > activerecord (2.1.0, 2.0.991.20080529111450, 2.0.991) > activeresource (2.1.0, 2.0.991.20080529111450, 2.0.991) > activesupport (2.1.0, 2.0.991.20080529111450, 2.0.991) > cgi_multipart_eof_fix (2.5.0) > fxri (0.3.6) > fxruby (1.6.12) > gem_plugin (0.2.3) > hpricot (0.6) > log4r (1.0.5) > mongrel (1.1.5) > rails (2.1.0, 2.0.991.20080529111450, 2.0.991) > rake (0.8.1, 0.7.3) > sources (0.0.1) > win32-api (1.0.4) > win32-clipboard (0.4.3) > win32-dir (0.3.2) > win32-eventlog (0.4.6) > win32-file (0.5.4) > win32-file-stat (1.2.7) > win32-process (0.5.3) > win32-sapi (0.1.4) > win32-sound (0.4.1) > windows-api (0.2.0) > windows-pr (0.7.2) > > Ruby version: > ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] > > Any ideas? > Thanks! > -Irene > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ramon Miguel M. Tayag
2008-Jun-02 14:46 UTC
Re: Undefined method `store_full_sti_class='' for ActiveRecord::Base:Class (NoMethodError)
2.1 Is out you might wanna try that :) Might solve the problem. On Mon, Jun 2, 2008 at 9:07 PM, Iros <imirene-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi everyone, > > I created a new demo app with ''rails demo'' and proceeded to try and > launch the server with ''ruby scripts/server''. > I get the following stack:-- Ramon Tayag --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mike Mcc
2008-Jun-26 08:26 UTC
Re: Undefined method `store_full_sti_class='' for ActiveRecord::Base:Class (NoMethodError)
I found that commenting out that line (new_rails_defaults.rb:8) gets rid of the error and things still work. Iros wrote:> c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.991/lib/active_record/ > base.rb:16 > 45:in `method_missing'': undefined method `store_full_sti_class='' for > ActiveRecord::Base:Class (NoMethodError) > from C:/manyeyes/railsEdu/demo/config/initializers/ > new_rails_defaults.rb:8-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---