开发者

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

开发者 https://www.devze.com 2023-03-04 21:19 出处:网络
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?

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

精彩评论

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