I upgraded to Rails 1.2.2 and my project inside of RADRails stopped working. I think I followed the steps in the upgrade process correclty. The problem occurs when accessing the first page. I get the error: Expected ./script/../config/../app/controllers/main_controller.rb to define MainController c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ dependencies.rb:249:in `load_missing_constant'' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ dependencies.rb:452:in `const_missing'' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ dependencies.rb:464:in `const_missing'' etc Any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
That looks very much like a problem we were having. In our case, as of Rails 1.2, any modules loaded from the /lib directory needed to be explicitly required in the class file doing the calling. However, I haven''t seen that with a controller before. The "expected ____ to define ____" part of your error though is exactly the same thing we were seeing and a properly placed ''require'' corrected it for us. kerbo wrote:> I upgraded to Rails 1.2.2 and my project inside of RADRails stopped > working. I think I followed the steps in the upgrade process > correclty. The problem occurs when accessing the first page. I get the > error: > > Expected ./script/../config/../app/controllers/main_controller.rb to > define MainController > > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ > dependencies.rb:249:in `load_missing_constant'' > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ > dependencies.rb:452:in `const_missing'' > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ > dependencies.rb:464:in `const_missing'' > etc > > Any ideas? > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Are you using engines? If so the engine code is not ready for 1.2.2. Aaron --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Well, when I''ve seen that "Expected blah to define Blah" error before, it''s always been because I was really not defining that class in that file. Does main_controller.rb exist where it thinks it should; does that file define MainController? b kerbo wrote:> I upgraded to Rails 1.2.2 and my project inside of RADRails stopped > working. I think I followed the steps in the upgrade process > correclty. The problem occurs when accessing the first page. I get the > error: > > Expected ./script/../config/../app/controllers/main_controller.rb to > define MainController > > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ > dependencies.rb:249:in `load_missing_constant'' > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ > dependencies.rb:452:in `const_missing'' > c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/ > dependencies.rb:464:in `const_missing'' > etc > > Any ideas? > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---