回答編集履歴
1
詳細に
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
|
|