]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entry_controller.rb
Make diary comment creation work again.
[rails.git] / app / controllers / diary_entry_controller.rb
index c74c821c25cac2861790a2e7fe58725a779aba26..8daeac5debc30a823b4ad7ea01c10c00478f8707 100644 (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