質問編集履歴

1

誤字

2018/01/09 13:31

投稿

ooo
ooo

スコア22

test CHANGED
File without changes
test CHANGED
@@ -42,7 +42,7 @@
42
42
 
43
43
  #postモデルは、is_recent_post_within_todayメソッドを持ち、最新のpostが本日投稿されていればtrueを返します
44
44
 
45
- if self.post.is_recent_post_within_today
45
+ if self.posts.is_recent_post_within_today
46
46
 
47
47
  return true
48
48
 
@@ -92,7 +92,7 @@
92
92
 
93
93
  #postモデルは、is_recent_post_within_todayメソッドを持ち、最新のpostが本日投稿されていればtrueを返します
94
94
 
95
- if self.post.is_recent_post_within_today
95
+ if self.posts.is_recent_post_within_today
96
96
 
97
97
  return true
98
98