Rails : Trouble installing attachement_fu on Heroku
-
09-10-2019 - |
Pergunta
I'm trying to deploy an app on heroku. My trouble is to install hattachement_fu plugin.
I ran the following command to install it directly on the server.
heroku plugins:install http://github.com/technoweenie/attachment_fuand"
and I get the following message :
Unable to load plugin: some_plugin: uninitialized constant ActiveRecord
Already up-to-date.
attachment_fu installed
So seams that the plugin is installed but something get wrong above ... But in my logs I continue to get :
NoMethodError (undefined method `has_attachment' for #<Class:0x2b3fed47a830>):
Like if the plugin was not there.
Any idea about what's going on ?
Solução
That's not how plugins work. The command you used is for installing plugins to the heroku command line tool.
If you want to install a Rails plugin, go to your project folder and script/plugin install foo
(or however your version of rails installs plugins), commit it, then push to heroku.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow