Rails: AbstractController::Helpers::MissingHelperError - Missing helper file application_helper.rb_helper.rb

匿名 (未验证) 提交于 2019-12-03 01:18:02

问题:

Can't find any resource that's helped me in this! When I try to 'rails s' and go to any page of the app; it shoots me this error page saying I am missing helper files.

I think it's local on my desktop machine because I recently did some work to the app on my laptop. I pushed from the laptop and app works fine on Heroku and runs local on that machine with zero problems. I added a feature to upload company logo images using Carrierwave, Mini_Magick, and Fog to Amazon S3.

Things I've tried so far: I've deleted the app and git clone it back to this machine. I've tried Brew uninstall/install imagemagick and did all the basics like bundle install, rake db:migrate after I cloned the app. Still no luck..

Here is the error codes I am getting on the page and also the full trace:

AbstractController::Helpers::MissingHelperError in PagesController#dashboard Missing helper file helpers//users/jamesfend/sites/feedbackz/app/helpers/application_helper.rb_helper.rb  Extracted source (around line #1): 1 class ApplicationController < ActionController::Base     2 # Prevent CSRF attacks by raising an exception. 3 # For APIs, you may want to use :null_session instead. 4 protect_from_forgery with: :exception

Full Trace

actionpack (4.2.0) lib/abstract_controller/helpers.rb:151:in `rescue in block in modules_for_helpers' actionpack (4.2.0) lib/abstract_controller/helpers.rb:148:in `block in modules_for_helpers' actionpack (4.2.0) lib/abstract_controller/helpers.rb:144:in `map!' actionpack (4.2.0) lib/abstract_controller/helpers.rb:144:in `modules_for_helpers' actionpack (4.2.0) lib/action_controller/metal/helpers.rb:93:in `modules_for_helpers' actionpack (4.2.0) lib/abstract_controller/helpers.rb:108:in `helper' actionpack (4.2.0) lib/action_controller/railties/helpers.rb:17:in `inherited' app/controllers/application_controller.rb:1:in `' activesupport (4.2.0) lib/active_support/dependencies.rb:457:in `load' activesupport (4.2.0) lib/active_support/dependencies.rb:457:in `block in load_file' activesupport (4.2.0) lib/active_support/dependencies.rb:647:in `new_constants_in' activesupport (4.2.0) lib/active_support/dependencies.rb:456:in `load_file' activesupport (4.2.0) lib/active_support/dependencies.rb:354:in `require_or_load' activesupport (4.2.0) lib/active_support/dependencies.rb:494:in `load_missing_constant' activesupport (4.2.0) lib/active_support/dependencies.rb:184:in `const_missing' app/controllers/pages_controller.rb:1:in `' activesupport (4.2.0) lib/active_support/dependencies.rb:457:in `load' activesupport (4.2.0) lib/active_support/dependencies.rb:457:in `block in load_file' activesupport (4.2.0) lib/active_support/dependencies.rb:647:in `new_constants_in' activesupport (4.2.0) lib/active_support/dependencies.rb:456:in `load_file' activesupport (4.2.0) lib/active_support/dependencies.rb:354:in `require_or_load' activesupport (4.2.0) lib/active_support/dependencies.rb:494:in `load_missing_constant' activesupport (4.2.0) lib/active_support/dependencies.rb:184:in `const_missing' activesupport (4.2.0) lib/active_support/inflector/methods.rb:261:in `const_get' activesupport (4.2.0) lib/active_support/inflector/methods.rb:261:in `block in constantize' activesupport (4.2.0) lib/active_support/inflector/methods.rb:259:in `each' activesupport (4.2.0) lib/active_support/inflector/methods.rb:259:in `inject' activesupport (4.2.0) lib/active_support/inflector/methods.rb:259:in `constantize' activesupport (4.2.0) lib/active_support/dependencies.rb:566:in `get' activesupport (4.2.0) lib/active_support/dependencies.rb:597:in `constantize' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:69:in `controller_reference' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:59:in `controller' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:38:in `serve' actionpack (4.2.0) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:802:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.6.0) lib/rack/etag.rb:24:in `call' rack (1.6.0) lib/rack/conditionalget.rb:25:in `call' rack (1.6.0) lib/rack/head.rb:13:in  
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!