Crystal Reports

We need to generate the crystal reports dynamically from ROR
application. I believe we need to pass the xml to the crystal report
Any one knows how to call the crystal report template file dynamically
rails application and pass the xml data to the crystal report.