Make diary comment creation work again.
This commit is contained in:
parent
ea294c5a68
commit
57a05a40fc
4 changed files with 13 additions and 9 deletions
|
@ -52,7 +52,7 @@ class DiaryEntryController < ApplicationController
|
|||
|
||||
def comment
|
||||
@entry = DiaryEntry.find(params[:id])
|
||||
@diary_comment = @entry.diary_comments.build(params[:diary_comment])
|
||||
@diary_comment = @entry.comments.build(params[:diary_comment])
|
||||
@diary_comment.user = @user
|
||||
if @diary_comment.save
|
||||
if @diary_comment.user != @entry.user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue