render JSONp format

I see that rendering json arrays is very simple but JQuery needs to
have a jsonp format for cross domain requests.

is there a way to have rails output in the jsonp format?

Thanks in advance

Just a quick google search on “jsonp rails” brings up:

http://github.com/rack/rack-contrib/blob/cfee6eefe8291d0aa3c70a12b3b2cc350ec09beb/lib/rack/contrib/jsonp.rb

http://www.sitepoint.com/blogs/2006/10/05/json-p-output-with-rails/

… and some more interesting links.

Best regards

Peter De Berdt