我正在尝试在heroku上部署应用。 我的麻烦是安装hattachement_fu插件。
我运行以下命令将其直接安装在服务器上。
heroku plugins:install http://github.com/technoweenie/attachment_fuand"
我收到以下消息:
Unable to load plugin: some_plugin: uninitialized constant ActiveRecord
Already up-to-date.
attachment_fu installed
所以插件已安装,但上面出现了错误...... 但在我的日志中,我继续得到:
NoMethodError (undefined method `has_attachment' for #<Class:0x2b3fed47a830>):
就像插件不存在一样。
关于发生了什么的任何想法?
答案 0 :(得分:0)
这不是插件的工作方式。您使用的命令是将插件安装到heroku命令行工具。
如果你想安装一个Rails插件,请转到你的项目文件夹和script/plugin install foo
(或者你的版本的rails安装插件),提交它,然后推送到heroku。