回答編集履歴

1

詳細に

2019/09/04 20:23

投稿

unhappychoice
unhappychoice

スコア1531

test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  @comment.tweet_id=@tweet # @tweet ではなく、 @tweet.id ?
16
16
 
17
- if @comment.save # save は失敗すので、エラーは表示する
17
+ if @comment.save # save は true/false で失敗を返すので、エラーは表示する
18
18
 
19
19
  flash[:notice] = "投稿しました"
20
20