【发布时间】:2016-12-19 16:22:07
【问题描述】:
我正在运行一个使用 Cloudinary/Attachinary 配置上传图像的 Rails 应用程序。在本地,一切都很好,我的应用程序运行,我可以将图片上传到 Cloudinary。我可以推送 Heroku,迁移正常,配置变量也可以,但应用程序因该错误而崩溃:
<class:CorsController>': undefined method `respond_to' for Attachinary::CorsController:Class (NoMethodError)
我们将不胜感激。
谢谢,
凯文
【问题讨论】:
-
也许可以试试
bundle update -
附件解决了这个问题,因为这个提交:github.com/assembler/attachinary/commit/…你需要得到gem的主版本
gem 'attachinary', github: 'assembler/attachinary'
标签: ruby-on-rails heroku cloudinary