My application seems to be throwing an error on startup when using the fog/aws gem and the instructions in the carrierwave wiki.
I simply want to upload to Amazon S3.
The error being thrown is
undefined method `fog_provider=' for CarrierWave::Uploader::Base:Class
Gemfile.rb
gem "fog"
gem "fog-aws"
gem "carrierwave"
initializers/carrierwave.rb
CarrierWave.configure do |config|
config.permissions = 0666
config.directory_permissions = 0777
config.storage = :fog
config.fog_provider = 'fog/aws'
config.fog_credentials = {
provider: 'AWS',
aws_access_key_id: 'KEYID',
aws_secret_access_key: 'SECRETID',
region: 'us-east-1'
}
config.fog_directory = 'bucket-name'
config.fog_public = false
end