I am trying to integrate a rails 3 application with jasper after this wiki:
http://wiki.rubyonrails.org/rails/pages/HowtoIntegrateJasperReports
But it seems that a lot of information is not updated, so it is very difficult to make it work independently. I also read the topic on the ruby-forum : http://www.ruby-forum.com/topic/139453 with some details explained, but still could not get it to work.
My first problem is with the render_to_string method: When the controller method starts, I get the message "Template missing":
this is the method:
def report @customers = Customer.all send_doc(render_to_string(:template => report_customers_path, :layout => false), '/pdfs', 'report.jasper', "customers", 'pdf') end
Although this seems simple, I do not understand why this is happening. Doesn't support render_to_string with layout => false to get a string result of this action? I also tried : action instead of : template , but it does the same.
If anyone with some knowledge of this integration can help ... Thanks in advance, Andre
ruby ruby-on-rails ruby-on-rails-3 jasper-reports
AndreDurao
source share