From: Gregory Brown Date: 2007-02-21T05:52:17+09:00 Subject: Re: Templates in Ruport class On 2/20/07, Firstname Surname wrote: > Hello, all. > > > How can I use a templates in the ruport. Does the ruport class support > templates? You mean ERb templates? Yeah, we support them, though I've never had any feature requests or suggestions about them so I tend to forget they're even there. Here is a simple example # foo.rb require "ruport" class MyReport < Ruport::Report def generate @html_table = [[1,2,3],[4,5,6]].to_table(%w[a b c]).to_html erb "foo.rhtml" end end puts MyReport.run # foo.rhtml <%= @html_table %> -------------------------------------------------------- If you'd like to chat about this some more, the best place to do it is the Ruport mailing list ( http://list.rubyreports.org ) [ which is just a different URI for the same list Chris Carter linked ] warm regards, -greg