相关疑难解决方法(0)

rails中的奇怪错误 - 缺少帮助程序

我不确定,但这可能与崩溃的计算机有关.重新启动后(崩溃后)我得到一个错误的助手错误,其中助手名称错误.切换分支对结果没有影响.

错误是:

缺少帮助文件助手// users/xxxx/sites/xxxx/app/helpers/accounts_helper.rb_helper.rb

香港专业教育学院尝试更新宝石,卸载铁轨和重新安装,检查帮助名称和任何帮助包括在内.我还审查了git日志并检查了最近更改的代码.没运气.

堆栈跟踪

Started GET "/" for 127.0.0.1 at 2015-01-09 17:53:57 -0700
  ActiveRecord::SchemaMigration Load (1.1ms)  SELECT "schema_migrations".* FROM "schema_migrations"

AbstractController::Helpers::MissingHelperError - Missing helper file helpers//users/xxxx/sites/xxxx/app/helpers/accounts_helper.rb_helper.rb:
  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 `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 `<top (required)>'
  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 …
Run Code Online (Sandbox Code Playgroud)

schema helper ruby-on-rails-4

32
推荐指数
3
解决办法
1万
查看次数

Rails:AbstractController :: Helpers :: MissingHelperError - 缺少帮助文件application_helper.rb_helper.rb

找不到任何帮助我的资源!当我尝试'rails s'并转到应用程序的任何页面时; 它向我发送这个错误页面说我缺少帮助文件.

我认为它在我的桌面计算机上是本地的,因为我最近在笔记本电脑上对应用程序做了一些工作.我推出笔记本电脑和应用程序在Heroku上工作正常,并在该机器上运行本地零问题.我添加了一项功能,使用Carrierwave,Mini_Magick和Fog将公司徽标图像上传到Amazon S3.

到目前为止我尝试过的事情:我删除了应用程序并将git克隆回这台机器.我尝试过Brew卸载/安装imagemagick,并在克隆应用程序后完成了所有基础知识,如bundle install,rake db:migrate.仍然没有运气..

这是我在页面上获得的错误代码以及完整的跟踪:

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
Run Code Online (Sandbox Code Playgroud)

完整追踪

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 …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails ruby-on-rails-4

17
推荐指数
3
解决办法
1万
查看次数

标签 统计

ruby-on-rails-4 ×2

helper ×1

ruby-on-rails ×1

schema ×1