Open jfacoustic opened 5 years ago
Install byebug
gem and put a debugger
statement above the line that gives error. Then press n
in the console to follow where the :name
is required for.
You need to provide a bucket name. I was able to get this working with the following config in an initializer:
CarrierWave.configure do |config|
config.aws_bucket = ENV['AWS_BUCKET']
config.aws_credentials = {
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
region: 'us-west-1'
}
end
I've been trying to get my blog set up on Heroku in S3. I followed issue #16, but this is as far as I got.
I've also been following Heroku's instructions for setting up Rails with S3.
I was testing this with
heroku local:run rails s
to get the error.I tried pushing to my website and it didn't work either.
ArgumentError in Lines::Articles#index missing required option :name
The top of my framework trace says aws-sdk-s3 (1.30.1) lib/aws-sdk-s3/bucket.rb:684:in
extract_name
Thanks for your help :)