Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
导轨:在Heroku上安装附件时出现问题_Heroku_Ruby On Rails Plugins_Attachment Fu - Fatal编程技术网

导轨:在Heroku上安装附件时出现问题

导轨:在Heroku上安装附件时出现问题,heroku,ruby-on-rails-plugins,attachment-fu,Heroku,Ruby On Rails Plugins,Attachment Fu,我正在尝试在heroku上部署一个应用程序。 我的麻烦是安装Hattachment_-fu插件 我运行以下命令直接在服务器上安装它 heroku plugins:install http://github.com/technoweenie/attachment_fuand" 我得到以下信息: Unable to load plugin: some_plugin: uninitialized constant ActiveRecord Already up-to-date. attachme

我正在尝试在heroku上部署一个应用程序。 我的麻烦是安装Hattachment_-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>):
NoMethodError(未定义的方法'has#attachment'表示#):
就像插件不在那里一样


知道发生了什么吗?

插件不是这样工作的。您使用的命令用于将插件安装到heroku命令行工具


如果您想安装Rails插件,请转到您的项目文件夹并
script/plugin install foo
(或者您的Rails版本如何安装插件),提交它,然后推送到heroku。

我已经安装了它。。。但是我继续得到这个错误消息:NoMethodError(未定义的方法'has#attachment'for#):这是我首先做的。。但是看到这个附件没有被认出,我想heroku还需要别的东西。我也试着用heroku命令行卸载插件,进行测试,然后重新安装,但在任何解决方案中都不起作用。当应用程序在我的笔记本电脑上本地运行时,一切正常,但在Heroku上没有检测到插件。。。废话真的很奇怪,heroku也继续提出这个错误:无法加载插件:一些插件:未初始化的常量ActiveRecord我也尝试在我的模型中添加一些Required“attachement\u fu”,但在heroku上也无法在本地识别。太糟糕了。。。我发现了错误。我不是一个好的git用户,我想念添加/供应商文件。我删除了文件夹,重新安装插件,然后推上heroku,一切都很好。