Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

constant ActionView::Base::Subclasses:: MainController not defined

#3366

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<br/> /rails/actionpack/lib/action_view/base.rb:242:inremove_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.
There seems to be an unfinished work there because I saw this comment line:
#Decouple this so helpers are a separate concern in AV just like.

Reported by Joshua Partogi · October 12th, 2009 @ 12:19 AM

State: stale
Milestone: none
Assigned to: Yehuda Katz (wycats) Yehuda Katz (wycats)
Importance: none

Activity

  1. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to stale
    • Importance changed from to

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

    October 6th, 2010 @ 06:40 AM