Paperclip Error: uninitialized constant Paperclip (NameError)

三世轮回 提交于 2019-12-05 16:31:46

I'm not sure if this will solve your problem, but if you're using Bundler, you don't need to call config.gem in your environment.rb. Maybe instead you should do:

gem 'paperclip-cloudfiles', '~>2.3', :require => 'paperclip'

In your gemfile you could try:

gem 'paperclip', :git => "git://github.com/minter/paperclip.git"

As Jack Chu stated you shouldn't need to list the gem in your environment.rb

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