Running jasper report from rails

can someone point me to an example that run a jasper report from rails,
may
be it also pass variable to the jasper report. then the output page
needs
to be pass back to rails