安装Paperclip后未定义的方法has_attached_file? [英] Undefined method has_attached_file after Paperclip installation?
问题描述
不知道我是否在这里做了一切。我添加了Paperclip宝石到我的Gemfile和捆绑安装。我遵循了Paperclips Github页面上的自述手册。
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.
我不知道我是否需要安装ImageMagick。但是,我在Github上找到一个脚本来安装在Snow Leopard上,所以我运行了:
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
rails plugin install http://github.com/masterkain/ImageMagick-sl.git
但是,现在我得到未定义的方法has_attached_file
But, now I'm getting Undefined method has_attached_file
我对Rails和编程完全陌生。大部分对我来说都很先进,但到目前为止我已经设计出来的东西。
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.
推荐答案
rails服务器?
这篇关于安装Paperclip后未定义的方法has_attached_file?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!