From 68a1f7d39757bec43cdf7cd70d06fcf4bf718a9a Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Fri, 16 Sep 2011 00:10:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8F=90=E9=86=92=E9=87=8C?= =?UTF-8?q?=E9=9D=A2=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2e3dac6..a2bbfe4 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -17,7 +17,7 @@ def ask_notification_tag(ask_id, notify, show_ask = true) log = notify.log a = notify.action tag = "" - ask = Ask.where(:ask_id => ask_id).first() + ask = Ask.first(:conditions => {:id => ask_id}) return "" if ask.blank? or log.blank? or log.user.blank? # ask_tag = "#{ask.title}" user_tag = "#{log.user.name} "