Rails“缺少帮助文件”是一个已安装的gem

时间:2013-06-14 00:51:07

标签: ruby-on-rails gem

我已经运行bundle install并安装了其他宝石rmagick。我有一个调用helpers/images_helper.rb的文件require 'rmagick'。一切都在我的本地计算机上运行;但是当我尝试在Ubuntu(Amazon EC2实例)上运行它时,主页面会出现错误:

LoadError in HomeController#hello

Missing helper file helpers/rmagick.rb

Rails.root: /home/ubuntu/app

Application Trace | Framework Trace | Full Trace
app/controllers/application_controller.rb:3:in `<top (required)>'
app/controllers/home_controller.rb:1:in `<top (required)>'
This error occurred while loading the following files:
   rmagick

我跑了gem env并查看了安装宝石的目录,确实有一个名为rmagick.rb的文件。发生什么了?为什么还要查看帮助文件呢?

0 个答案:

没有答案