How do I format and apply rails methods to output of Ruport?
- by Angela
I am creating a report from Ruport and want to be able to take the grouping heading, in this case the ID for the class Email, and wrap a method around it and a link_to to link to the Email view based on the email_id:
@table = ContactEmail.report_table(:all,
:conditions => ['date_sent >= ? and date_sent <= ?', @monday, @friday])
@grouping = Grouping(@table, :by => "email_id")
How do I do that? It feels as if I have little control over the output.