undefined method `find' for AWS::S3::Bucket:Class

后端 未结 2 1682
难免孤独
难免孤独 2021-01-20 13:14

I\'m working on implementing an Amazon S3 uploader for my rails project.

I\'m trying to access a bucket so that I can assign all the images to a variable and list th

2条回答
  •  [愿得一人]
    2021-01-20 13:42

    Works here. What happens if you go to the console and do:

    require 'aws/s3'
    AWS::S3::Bucket.methods.find_all{|m| m=~/find/ }
    

    ? I'm using aws-s3 0.6.3. If there's still no such method, then perhaps aws-sdk is the culprit? I never used it before.

提交回复
热议问题