I'm making Angular/Rails app and upgraded Rails from 4.2.x to 5.0.0 and AWS-SDK from 1.6.x to 2.4.4.
1) I used to able to retrieve files from certain path in my AWS S3 bucket using the following syntax:
@files = @bucket.objects.with_prefix("path/to/folder")
(undefined method `with_prefix' for #<Aws::Resources::Collection:______>
ArgumentError (wrong number of arguments (given 1, expected 0))
You have syntax error, options need to be a Hash. Your command should be:
For more options, refer docs: http://docs.aws.amazon.com/sdkforruby/api/Aws/S3/Bucket.html#objects-instance_method