How do I format and apply rails methods to output of Ruport?
        Posted  
        
            by Angela
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Angela
        
        
        
        Published on 2010-06-16T03:35:19Z
        Indexed on 
            2010/06/16
            3:42 UTC
        
        
        Read the original article
        Hit count: 324
        
ruport
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.
© Stack Overflow or respective owner