ruby on rails - Is it possible to send javascript request using wiselinks? -


by default rails (i using rails 4) sends data-remote requests following header:

accept:*/*;q=0.5, text/javascript, application/javascript, application/ecmascript, application/x-ecmascript 

later in rails code respond using format.js.

i want migrate wiselinks, data-push requests try render html. possible have default rails behaviour wiselinks?

i think don't unserstand correctly how wiselinks work. if use :data => { :remote => true }, don't need :data => { :push => true }.

pushing should used if need update url (follow link).


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -