質問編集履歴
1
参考サイト
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,9 @@
|
|
20
20
|
|
21
21
|
```
|
22
22
|
|
23
|
-
<PictureUploader:0x00005592f2b2e0c8 @model=#<Micropost id: 7, pictures: "\"image/upload/v1613479395/xvxxrhawuhvk6kddp9iv.jpg...">, @mounted_as=:pictures, @file=#<Cloudinary::CarrierWave::CloudinaryFile:0x00005df88 @uploader=#<PictureUploader:0x00005592f2b2e0c8 ...>, @identifier="\"image/upload/v1613479395/xvxxrhawuhvkddp9iv.jpg\"", @filename="\"image/upload/v1613479395/xvxxrhawuhvkddp9iv.jpg\"", @version=nil, @storage_type=nil, @resource_type="raw",
|
23
|
+
<PictureUploader:0x00005592f2b2e0c8 @model=#<Micropost id: 7, pictures: "\"image/upload/v1613479395/xvxxrhawuhvk6kddp9iv.jpg...">, @mounted_as=:pictures, @file=#<Cloudinary::CarrierWave::CloudinaryFile:0x00005df88 @uploader=#<PictureUploader:0x00005592f2b2e0c8 ...>, @identifier="\"image/upload/v1613479395/xvxxrhawuhvkddp9iv.jpg\"", @filename="\"image/upload/v1613479395/xvxxrhawuhvkddp9iv.jpg\"", @version=nil, @storage_type=nil, @resource_type="raw",
|
24
|
+
|
25
|
+
@public_id="\"image/upload/v1613479395/xvxxrhawuhvkddp9iv", @format="jpg\"">, @stored_public_id="\"image/upload/v1613479395/xvxxrhawuhvkddp9iv", @public_id="\"image/upload/v1613479395/xvxxrhawuhvkddp9iv", @stored_version=nil, @original_filename="_image_upload_v1613479395_xvxxrhawuhvkddp9iv.jpg_">
|
24
26
|
|
25
27
|
```
|
26
28
|
|
@@ -81,3 +83,13 @@
|
|
81
83
|
picturesはpostgresqlに保存されています。データの型はjsonです。
|
82
84
|
|
83
85
|
postgresqlの DBをしらべてみてもやはり一つしか投稿されていませんでした。
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
### 参考サイト
|
90
|
+
|
91
|
+
https://qiita.com/matsubishi5/items/a0ff8ab9a830d2cfcc7e
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
https://twint.com/rails%E3%81%A7carrierwave%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E8%A4%87%E6%95%B0%E3%81%AE%E7%94%BB%E5%83%8F%E3%82%A2%E3%83%83%E3%83%97%E3%83%AD%E3%83%BC%E3%83%89/
|