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.

Looks like helper :all is broken in Rails 2.3.2

#2540

We're running Rails 2.3.2 w/ Mongrel on Mac. On startup, it appears helper :all is ignored in application_controller.rb

The following does not work:

class ApplicationHelper < ActionController::Base
  helper :all
  # ...
end

The following does:

class ApplicationHelper < ActionController::Base
  require 'helpers/application_helper'
  include ApplicationHelper
  # ...
end

Is it possible there is some type of reflection added in Rails 2.3.2 which is breaking this?

This is Ruby 1.8.7, Rails 2.3.2 on Mac OS X

Reported by Nate Wiger · April 22nd, 2009 @ 02:08 AM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Nate Wiger
    Nate Wiger

    I'm sorry, I typed that code rather than cut-and-pasting it.

    The helper :all is of course in ApplicationController

    class ApplicationController < ActionController::Base
      # Looks like helper :all broke in Rails 2.3.2?
      #helper :all # include all helpers, all the time
      require 'helpers/application_helper'
      include ApplicationHelper
    end
    
    

    Sorry for the confusion.

    April 22nd, 2009 @ 02:09 AM

  2. Nate Wiger
    Nate Wiger

    This is invalid. Nevermind.

    It turns out an Engine supplied application_helper.rb, which was used instead of the default one.

    Interesting landmine to watch out for.

    April 22nd, 2009 @ 07:40 PM

  3. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to invalid

    Thanks for the followup.

    April 22nd, 2009 @ 09:15 PM