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 file. Any one knows how to call the crystal report template file dynamically from rails application and pass the xml data to the crystal report.