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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---