Duplicated key at line 80 ignored: “name” rvm

醉酒当歌 提交于 2019-12-05 06:08:29

As @jBeas said in the comments go find the latest fog gem version https://rubygems.org/gems/fog

Then update the fog gem in your rails gemfile, currently your fog gem should be:

gem 'fog', '1.38.0'

This used to be a recurring error for users who had followed along with the Rails Tutorial for Rails 4 where the Tutorial guided the users to use an outdated version of the Fog gem, 1.23.0 (it was the updated version at the time the Rails Tutorial was written).

Now that the rails tutorial has been recently updated for Rails 5 the fog gem is currently up to date: '1.38.0'.

UPDATE for those coming from Rails Tutorial

The latest prevailing wisdom is to use carrierwave-aws gem rather than fog, significantly reducing your app's footprint. The switch took me about 15 minutes and reduced my gem dependencies by 33. Advice taken from Mike Perham, the creator of Sidekiq: http://www.mikeperham.com/2016/02/09/kill-your-dependencies/

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