This project is archived and is in readonly mode.
Looks like helper :all is broken in Rails 2.3.2
Reported by Nate Wiger | April 22nd, 2009 @ 02:08 AM | in 2.x
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
Comments and changes to this ticket
-
Nate Wiger April 22nd, 2009 @ 02:09 AM
I'm sorry, I typed that code rather than cut-and-pasting it.
The
helper :all
is of course inApplicationController
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.
-
Nate Wiger April 22nd, 2009 @ 07:40 PM
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.
-
CancelProfileIsBroken April 22nd, 2009 @ 09:15 PM
- State changed from new to invalid
Thanks for the followup.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>