I'm attempting to restart my rails server with the configuration specific in the readme.
S3DirectUpload.config do |c|
c.access_key_id = "MY-KEY" # your access key id
c.secret_access_key = "MY-SECRET" # your secret access key
c.bucket = "MY-BUCKET" # your bucket name
c.region = nil # region prefix of your bucket url (optional), eg. "s3-eu-west-1"
c.url = nil # S3 API endpoint (optional), eg. "https://#{c.bucket}.s3.amazonaws.com/"
end
I'm unable to use region or url in my config. With either one I get this error:
config/initializers/s3_direct_upload.rb:4:in block in <top (required)>': undefined methodurl=' for #S3DirectUpload::Config:0x007fb85f395908 (NoMethodError)
I'm attempting to restart my rails server with the configuration specific in the readme.
S3DirectUpload.config do |c| c.access_key_id = "MY-KEY" # your access key id c.secret_access_key = "MY-SECRET" # your secret access key c.bucket = "MY-BUCKET" # your bucket name c.region = nil # region prefix of your bucket url (optional), eg. "s3-eu-west-1" c.url = nil # S3 API endpoint (optional), eg. "https://#{c.bucket}.s3.amazonaws.com/" end
I'm unable to use region or url in my config. With either one I get this error:
config/initializers/s3_direct_upload.rb:4:in
block in <top (required)>': undefined method
url=' for #S3DirectUpload::Config:0x007fb85f395908 (NoMethodError)