Create a report_link helper, and use text instead of a flag icon
[rails.git] / app / helpers / reports_helper.rb
1 module ReportsHelper
2   def report_link(name, reportable)
3     link_to name, new_report_url(:reportable_id => reportable.id, :reportable_type => reportable.class.name)
4   end
5 end