Create a report_link helper, and use text instead of a flag icon
This commit is contained in:
parent
ee1a8637d3
commit
32d1afbb18
7 changed files with 22 additions and 22 deletions
5
app/helpers/reports_helper.rb
Normal file
5
app/helpers/reports_helper.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
module ReportsHelper
|
||||
def report_link(name, reportable)
|
||||
link_to name, new_report_url(:reportable_id => reportable.id, :reportable_type => reportable.class.name)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue