Forum: Ruby on Rails report generation

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Subhadip C. (Guest)
on 2008-12-10 13:57
  Hi,
   i will want to generate a report based on some data in a text file.
   is it possible in ruby on rails for rails version 2.2.2.
   please give some hints or tutorial.

                         Thanks
tonypm (Guest)
on 2008-12-11 09:25
(Received via mailing list)
If you want to deliver a report in file format, you need to use the
send_data method in the controller.  This causes the user to see the
download  dialog delivering a file for the user to view/save.

How to format the report is another issue.  I use pdf-writer plugin
which allows creation of a pdf file format.  It is a bit fiddly to
use, but is not bad, once you have got your head round how to layout
various elements.  The table format can be a bit limited.  (A new pdf
creator called prawn is under development which).

Tonypm
This topic is locked and can not be replied to.