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.

Add feature, turning off autoloading helpers

#4750

This is a ticket opened to request a Rails 2 behavior described in #3945 helper :all on by default.

The configuration should have the following settings:

  1. (Default) Rails 3 behavior: all helpers defined in /app/helpers/ are loaded into every single controller, in an arbitrary order
  2. Rails 2 behavior: only helper module associated with the controller is autoloaded
  3. None: do not autoload any helpers

My proposal is:

# Rails 3 behavior
# No change

# Rails 2 behavior
self.autoload_only_controller_helpers = true

# No helper autoload, period
self.autoload_helpers = false

Let me know if anyone else finds this acceptable and we can get someone to submit this as a patch.

Reported by Ho-Sheng Hsiao · June 1st, 2010 @ 11:07 PM

State: duplicate
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Ho-Sheng Hsiao
    Ho-Sheng Hsiao
    • Tag changed from rails 3.0.0.beta3 to rails 3.0.0.beta3, actioncontroller, helpers

    June 1st, 2010 @ 11:10 PM

  2. Nathan Colgate
    Nathan Colgate
    • Tag changed from rails 3.0.0.beta3, actioncontroller, helpers to rails 3.0.0.beta3, rails 3.0.0.beta4, actioncontroller, helpers

    After struggling through the proposed solution in #3945 helper :all on by default (http://gist.github.com/486356) and getting nowhere, I would certainly appreciate the above implementation.

    July 22nd, 2010 @ 08:01 PM

  3. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to duplicate
    • Importance changed from to Low

    August 26th, 2010 @ 04:38 AM