I am having a similar problem, here is my code inside my uploader:
# Choose what kind of storage to use for this uploader:
storage :s3
# storage :fog
fog_credentials = {
:provider => 'AWS', # required
:aws_access_key_id => 'XXXXXX', # required
:aws_secret_access_key => 'XXXX/XXXXX', # required
#:region => 'eu-west-1' # optional, defaults to
'us-east-1'
}
fog_directory = 'XXXXXX' # required
#fog_host = 'XXXXXXX' # optional, defaults to nil
fog_public = false # optional,
defaults to true
#fog_attributes = {'Cache-Control'=>'max-age=315576000'} #
optional, defaults to {}
When I try to create a new upload I get the error: "can't convert nil
into String" in my create action.
I tried setting the storage to :fog, but that just made it break right
away. The fog_directory I am using is relative from the top level of
the s3 bucket, is that right?
Thanks,
-Nic