Paperclip - undefined method `match' for nil:NilClass

为君一笑 提交于 2019-12-05 16:37:05

I've ran into this error, and other similar ones as well, using paperclip. But I run my development environment on windows, and the latest version of paperclip uses the `file' command, which windows doesn't seem to like so much.

Hopefully this will be fixed soon, but for now I sidestepped the issue by using the last version of paperclip that works, namely 3.0.4.

If you're running on windows as well, just add this to your Gemfile:

gem 'paperclip', '3.0.4'

P.S. It might be worthwhile to try using 3.0.4 on development, and the latest version on production.

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