Generating reports in rails? Reinventing the wheel?

How about: http://www.openrpt.com/

the only question is if RPTRender can be executed from command line.
The output of this app is a PDF file which you could stream to the
client. I haven't had time to experiment with it yet, but will so by
the end of the month...

Rafael