I''m getting HTTP 500 errors after upgrading from RoR 1.1.6 to 1.2.1 and Ruby 1.8.4 to 1.8.5 (running on Win2k + Eclipse 3.2.1 + Rails plug-in). The log file gives the following error message: Expected ./script/../config/../app/controllers/store_controller.rb to define StoreController However, my controller definitely does have a class called StoreController. Anyone been here, done this and got the tee-shirt? TIA, Mick -- 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 -~----------~----~----~----~------~----~------~--~---
try load ''/path/to/store_controller'' in your ./script/console to see if the controller loads without errors... On Jan 24, 3:11 pm, Mick Sharpe <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I''m getting HTTP 500 errors after upgrading from RoR 1.1.6 to 1.2.1 and > Ruby 1.8.4 to 1.8.5 (running on Win2k + Eclipse 3.2.1 + Rails plug-in). > > The log file gives the following error message: > > Expected ./script/../config/../app/controllers/store_controller.rb to > define StoreController > > However, my controller definitely does have a class called > StoreController. > > Anyone been here, done this and got the tee-shirt? > > TIA, Mick > > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
Thanks for the suggestion. It turned out to be some plugins in my vendor directory that are incompatible with RoR 1.2.1 (namely ''engines''and ''datebocks_engine''). Rails loads any plugins it finds in the vendor directory unless you tell it to do otherwise using the config.plugins line in environment.rb . -- 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 -~----------~----~----~----~------~----~------~--~---
(seems like my reply lost somewhere...) Cool! And I was wondering why this loading error doesn'' get propagated to the top, so you can see real issue in stack trace. Looks like a bug, doesn''t it ? Can anyone explain this? On Jan 25, 7:10 pm, Mick Sharpe <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Thanks for the suggestion. It turned out to be some plugins in my vendor > directory that are incompatible with RoR 1.2.1 (namely ''engines''and > ''datebocks_engine''). Rails loads any plugins it finds in the vendor > directory unless you tell it to do otherwise using the config.plugins > line in environment.rb . > > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---