Make diary comment creation work again.

This commit is contained in:
Tom Hughes 2009-11-15 11:00:54 +00:00
parent ea294c5a68
commit 57a05a40fc
4 changed files with 13 additions and 9 deletions

View file

@ -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