I have Rails 1.1.2 installed and froze my app to 1.0 by checking it out into the vender directory. Maybe it''s coincidence, but now when trying to do rake migrate I get this:> rake migrate --trace(in /home/beet/workspace/) rake aborted! superclass mismatch for class OrderedOptions /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ordered_options.rb:27 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support.rb:36 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record.rb:30 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' /usr/lib/ruby/site_ruby/1.8/rubygems.rb:182:in `activate'' /usr/lib/ruby/site_ruby/1.8/rubygems.rb:181:in `activate'' /usr/lib/ruby/site_ruby/1.8/rubygems.rb:167:in `activate'' /usr/lib/ruby/site_ruby/1.8/rubygems.rb:166:in `activate'' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:26:in `require'' /home/beet/workspace/Rakefile:10 /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1828:in `load_rakefile'' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1900:in `run'' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 /usr/bin/rake:18 I haven''t been able to dig up much on this other than one suggestion that it''s caused by a naming conflict between a migration and a model with the same name, but I don''t have any such naming conflicts. Does anyone have any insights as so what might be causing the superclass mismatch? -- Posted via http://www.ruby-forum.com/.
Mark Beattie
2006-Jun-19 00:28 UTC
[Rails] Re: superclass mismatch for class OrderedOptions
Anyone had this happen, or have an idea what might cause it to happen? It''s a real spanner in the works. Mark Beattie wrote:> I have Rails 1.1.2 installed and froze my app to 1.0 by checking it out > into the vender directory. Maybe it''s coincidence, but now when trying > to do rake migrate I get this: > >> rake migrate --trace > (in /home/beet/workspace/) > rake aborted! > superclass mismatch for class OrderedOptions-- Posted via http://www.ruby-forum.com/.
I faced the same problem. Anybody solved this already? Mark Beattie wrote:> Anyone had this happen, or have an idea what might cause it to happen? > It''s a real spanner in the works. > > Mark Beattie wrote: >> I have Rails 1.1.2 installed and froze my app to 1.0 by checking it out >> into the vender directory. Maybe it''s coincidence, but now when trying >> to do rake migrate I get this: >> >>> rake migrate --trace >> (in /home/beet/workspace/) >> rake aborted! >> superclass mismatch for class OrderedOptions-- 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 -~----------~----~----~----~------~----~------~--~---
I have a similar problem. I use ruby 1.8.5 and rails 1.2.1 and when I run the script "public/dispatch.cgi", I have a similar error at line 28 (not 27) of ordered_options.rb (activesupport 1.4.0) : # ./public/dispatch.cgi /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/ordered_options.rb:28: superclass mismatch for class OrderedOptions (TypeError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in `require'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:343:in `new_constants_in'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in `require'' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support.rb:37 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' ... 8 levels... from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:42:in `run'' from ./public/../config/environment.rb:13 from ./public/dispatch.cgi:3:in `require'' from ./public/dispatch.cgi:3 Does anyone have an idea ? -- 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 -~----------~----~----~----~------~----~------~--~---
I''m using the same environment - ruby 1.8.5 and rails 1.2.1. I was using rails 1.1.1 when I ran rails, then upgraded to 1.2.2 and had the same superclass misatch ... OrderedOptions issue. Could not start script/server. I found that config/environment.rb still had the line: RAILS_GEM_VERSION = ''1.1.1'' even tho'' I had upgraded to 1.2.1. I changed this to RAILS_GEM_VERSION = ''1.2.1'' and voila, all is well. Frédéric Bruneteau wrote:> I have a similar problem. > > I use ruby 1.8.5 and rails 1.2.1 > and when I run the script "public/dispatch.cgi", > I have a similar error at line 28 (not 27) of ordered_options.rb > (activesupport 1.4.0) : > > # ./public/dispatch.cgi-- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
The solution is here....http://gacooh.blogspot.com/2009/03/superclass-mismatch-for-class-item.html it worked....enjoy -- 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-/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.