質問編集履歴

1

追記

2021/06/07 20:58

投稿

pecchan
pecchan

スコア592

test CHANGED
File without changes
test CHANGED
@@ -25,6 +25,32 @@
25
25
  NameError: uninitialized constant Aws
26
26
 
27
27
  ```
28
+
29
+
30
+
31
+ 1行目でエラー
32
+
33
+ ```ruby
34
+
35
+ Aws.config.update({
36
+
37
+ region: 'ap-northeast-1',
38
+
39
+ credentials: Aws::Credentials.new(Rails.application.credentials.aws[:access_key_id], Rails.application.credentials.aws[:secret_access_key]),
40
+
41
+ })
42
+
43
+
44
+
45
+ S3_BUCKET = Aws::S3::Resource.new.bucket(Rails.application.credentials.aws[:bucket])
46
+
47
+
48
+
49
+
50
+
51
+ ```
52
+
53
+
28
54
 
29
55
 
30
56