Error “uninitialized constant AWS (NameError)”

前端 未结 7 1767
梦毁少年i
梦毁少年i 2021-02-06 21:39

It is saying AWS is uninitialized. I am usign the aws-sdk-core gem.

I tried using the aws-sdk gem instead, and the problem was still there.

This is the initializ

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-06 22:40

    I was facing the same problem. One answer worked here without updating the gem.

    Simply change wherever required [in th require statement in environment]

    require 'aws-sdk'
    

    to

    require 'aws-sdk-v1'
    

提交回复
热议问题