问题
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