i using rails 4 , unobstrusive javascript(ujs) make ajax call:
i'd disable caching if clicks same link again , content in databse has changed, new content load inside modal.
i want use ujs , not vanilla javascript or metas.
some people do:
$.ajaxsetup ({ // disable caching of ajax responses cache: false });
how write rails?
<%= link_to "view", show_opportunities_path, remote: true, cache: false %> not work.
Comments
Post a Comment