X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/634565c5d399b71192484ac10fc2f8f1570e95f3..ef2cca8bd0b736cc9bbd11c0e1b31c77fed6a1c4:/app/controllers/diary_entry_controller.rb diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index c74c821c2..8daeac5de 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -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