What makes you think that rubygems.org supports JSONP at all? I don't see any mention of JSONP in the documentation and when I do this:
I get the same plain old JSON as I do from
lynx -dump -source 'http://rubygems.org/api/v1/gems/rails.json'
The only difference between the two is the downloads and version_downloads change but that's to be expected.
Hey man, really I'm not that good with all this JSON stuff, but I used to have the Access-Control-Allow-Origin error and they told me to add the JSONP options, to get around that error, but now I am stuck with this, problem. Do you know how to pass through the ccess-Control-Allow-Origin error without adding the JSONP?
@rogeliog: I've added some more explanation in an update. I think you're going to have to set up a simple proxy controller to get around the lack of JSONP and the cross domain request problem at the same time.
this all explains the error indeed, check the post below here (made by CD Sanchez) on how to fix this