开发者

Unable to store json response in a variable. Ruby on Rails

link_to causes the json response to be downloaded to my machine which I dont want. I want to be able to store the response in a variable. How can this be done?

Thanks in ad开发者_如何学编程vance. Vishal


If you're not using link_to with the :remote option set to true you may just be linking to a bit of JavaScript, not actually retrieving it with AJAX.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜