Undefined method has_attached_file after Paperclip installation?

拜拜、爱过 提交于 2019-12-23 19:34:09

问题


Not sure if I've done everything right here. I added the Paperclip gem to my Gemfile and did bundle install. I followed along with the readme instructions on Paperclips Github page.

I wasn't sure if I needed to install ImageMagick. But, I found a script on Github for installation on Snow Leopard, so I ran:

rails plugin install http://github.com/masterkain/ImageMagick-sl.git

But, now I'm getting Undefined method has_attached_file

I'm completely new to Rails and programming. Most of this is pretty advanced for me, but so far I've managed to figure stuff out.


回答1:


Have you restarted your rails server?



来源:https://stackoverflow.com/questions/3886088/undefined-method-has-attached-file-after-paperclip-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!