Use the right variable this time...
authorTom Hughes <tom@compton.nu>
Wed, 27 Jan 2010 09:07:25 +0000 (09:07 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 27 Jan 2010 09:07:25 +0000 (09:07 +0000)
app/controllers/diary_entry_controller.rb

index 2284d49..735c51d 100644 (file)
@@ -187,7 +187,7 @@ class DiaryEntryController < ApplicationController
   def hidecomment
     comment = DiaryComment.find(params[:comment])
     comment.update_attributes(:visible => false)
-    redirect_to :action => "view", :display_name => entry.diary_entry.user.display_name, :id => comment.diary_entry.id
+    redirect_to :action => "view", :display_name => comment.diary_entry.user.display_name, :id => comment.diary_entry.id
   end
 private
   ##