3 def reportable_url(reportable)
4 class_name = reportable.class.name
7 link_to reportable.title, :controller => reportable.class.name.underscore,
9 :display_name => reportable.user.display_name,
12 link_to reportable.display_name.to_s, :controller => reportable.class.name.underscore,
14 :display_name => reportable.display_name
16 link_to "#{reportable.diary_entry.title}, Comment id ##{reportable.id}", :controller => reportable.diary_entry.class.name.underscore,
18 :display_name => reportable.diary_entry.user.display_name,