質問編集履歴

1

誤記修正

2019/02/17 14:17

投稿

iyore888
iyore888

スコア40

test CHANGED
File without changes
test CHANGED
@@ -254,7 +254,7 @@
254
254
 
255
255
 
256
256
 
257
- post.user  Micropostに紐付いたUserオブジェクトを返す
257
+ post.user  postに紐付いたUserオブジェクトを返す
258
258
 
259
259
  user.posts  Userのマイクロポストの集合をかえす
260
260
 
@@ -262,7 +262,7 @@
262
262
 
263
263
  user.posts.create!(arg)  userに紐付いたマイクロポストを作成する (失敗時に例外を発生)
264
264
 
265
- user.posts.build(arg)  userに紐付いた新しいMicropostオブジェクトを返す
265
+ user.posts.build(arg)  userに紐付いた新しいpostオブジェクトを返す
266
266
 
267
267
  user.posts.find_by(id: 1)  userに紐付いていて、idが1であるマイクロポストを検索する
268
268