Browse files

修正提醒里面无法显示内容的问题;

  • Loading branch information...
1 parent 1eabc2c commit 68a1f7d39757bec43cdf7cd70d06fcf4bf718a9a @huacnlee committed Sep 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/helpers/application_helper.rb
View
2 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 = "<a href=\"#{ask_path(ask)}\">#{ask.title}</a>"
user_tag = "<a href=\"/users/#{log.user.slug}\">#{log.user.name}</a> "

0 comments on commit 68a1f7d

Please sign in to comment.