Report generation

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.


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).


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs