質問編集履歴

3

補足情報の修正

2019/08/31 03:18

投稿

rui-watanabe
rui-watanabe

スコア18

test CHANGED
File without changes
test CHANGED
@@ -226,4 +226,4 @@
226
226
 
227
227
  @record=
228
228
 
229
- #<User id: 8, email: "a1@gmail.com", name: "te", profile: "11111111", status: "released", created_at: "2019-08-29 10:24:33", updated_at: "2019-08-29 10:24:33">>
229
+ <User id: 8, email: "a1@gmail.com", name: "te", profile: "11111111", status: "released", created_at: "2019-08-29 10:24:33", updated_at: "2019-08-29 10:24:33">>

2

補足情報の修正

2019/08/31 03:18

投稿

rui-watanabe
rui-watanabe

スコア18

test CHANGED
File without changes
test CHANGED
@@ -218,7 +218,7 @@
218
218
 
219
219
 
220
220
 
221
- => #<ActiveStorage::Attached::One:0x00007f8fc98e3018
221
+ => <ActiveStorage::Attached::One:0x00007f8fc98e3018
222
222
 
223
223
  @dependent=:purge_later,
224
224
 

1

補足情報の追記

2019/08/31 03:17

投稿

rui-watanabe
rui-watanabe

スコア18

test CHANGED
File without changes
test CHANGED
@@ -209,3 +209,21 @@
209
209
  Ruby version 2.5.1
210
210
 
211
211
  Rails version 5.2.3
212
+
213
+
214
+
215
+
216
+
217
+ create.json.jbuilderをbinding.pryし、@message.user.avatarの値を確認したら以下のような値がとれます。
218
+
219
+
220
+
221
+ => #<ActiveStorage::Attached::One:0x00007f8fc98e3018
222
+
223
+ @dependent=:purge_later,
224
+
225
+ @name="avatar",
226
+
227
+ @record=
228
+
229
+ #<User id: 8, email: "a1@gmail.com", name: "te", profile: "11111111", status: "released", created_at: "2019-08-29 10:24:33", updated_at: "2019-08-29 10:24:33">>