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.
精彩评论