-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ApplicationController.helpers_path is empty? #2739
Comments
@robgleeson Is this still an issue? |
@robgleeson @isaacsanders @steveklabnik It's not an issue in master, but it will be nice if you can provide more information.
|
👍 on more information. |
I have no idea. :/ Since it's not an issue, I'm going to close, but since this isn't reproducible on a fresh app, I don't even know how to go about figuring out what went wrong. |
I know this is like beyond necrobump, but hey, I had the same problem and tracked down the cause (at least in my case), so figured I'd share. This can happen if |
Prevents this gem from loading ApplicationController much too early in the initialization process, which causes configuration problems. See rails/rails#2739.
@iangreenleaf fucking thank you. I owe you a beer. |
Holy crud. I just spent about a day debugging this issue. Finally came across this thread which tipped me off, so thank you! In my case the offending gem is grape-rails-routes. |
Hey,
After upgrading to .rc8,
ApplicationController.helpers_path
returns an empty array.This application is one I'm upgrading from Rails2(the upgrade isn't anywhere near ready yet).
Helpers other than those in ApplicationHelper aren't available in
ApplicationController._helpers.instance_methods
.If i call
reload!
, they become available.config.action_controller.include_all_helpers = true
makes no difference here. neither doeshelper :all
.manually calling
helper :foo
works, however.This application worked in respect to helpers on .rc6
Has the boot process changed in anyway?
I can't reproduce this bug on a fresh rails .rc8 project, so anything I can do to debug further would be appreciated.
(Btw, I've tried setting .helpers_path myself, it made no difference).
I'm at a loss as to what might be happening, as it isn't reproducible on a fresh Rails3 .rc8 project.
I realize I'm not providing a reproducible bug, and I'm sorry for that, but I can only reproduce it on my works app, which i can't share unfortunately.
Thanks.
The text was updated successfully, but these errors were encountered: