Use the right variable this time...
This commit is contained in:
parent
2330a1a378
commit
8e9a542482
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue