Skip to content

Commit

Permalink
修正提醒里面无法显示内容的问题;
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Sep 15, 2011
1 parent 1eabc2c commit 68a1f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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> "
Expand Down

0 comments on commit 68a1f7d

Please sign in to comment.