0

bundle install除了其他 gem 之外,我已经运行并安装了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查看说安装了 gem 的目录,确实有一个名为rmagick.rb. 发生什么了?为什么它仍然在帮助文件中查找?

4

0 回答 0