Joshua Partogi
2009-Oct-08 12:01 UTC
constant ActionView::Base::Subclasses::MainController not defined
Hi all, Today I checked out the latest version 3.0 and it currently breaks my app. When I open my app from the browser I encounter this error: NameError in MainController#index constant ActionView::Base::Subclasses::MainController not defined /rails/actionpack/lib/action_view/base.rb:242:in `remove_const'' When I go to action_view/base.rb and remarked this line: Subclasses.class_eval do remove_const(name) if const_defined?(name) const_set(name, self) end It seems to work fine again. Is there any unfinished work there because I saw this line: Decouple this so helpers are a separate concern in AV just like. Kind regards, -- Certified Scrum Master http://twitter.com/scrum8 | http://blog.scrum8.com | http://jobs.scrum8.com
Michael Koziarski
2009-Oct-10 02:55 UTC
Re: constant ActionView::Base::Subclasses::MainController not defined
> When I go to action_view/base.rb and remarked this line: > Subclasses.class_eval do > remove_const(name) if const_defined?(name) > const_set(name, self) > end > > It seems to work fine again.Can you create a ticket for this and assign it to yehuda? He''s been trying to get that block of code to work cleanly in 1.8.6, 1.8.7 and 1.9.1, obviously he''s missed something there :)> Is there any unfinished work there because I saw this line: > Decouple this so helpers are a separate concern in AV just like. > > > Kind regards, > > -- > Certified Scrum Master > http://twitter.com/scrum8 | http://blog.scrum8.com | http://jobs.scrum8.com > > > >-- Cheers Koz