Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I manually navigate with turbolinks in Rails?

I have an html table with rows and a jQuery handler on click.
The click event calls window.location.href which causes a full page refresh.

Can I somehow manually call turbolinks to fetch the page? Should I use PJAX instead?

Thanks

like image 285
blu Avatar asked Apr 14 '14 18:04

blu


1 Answers

From the Turbolinks Readme:

You can use Turbolinks.visit(path) to go to a URL through Turbolinks.

like image 181
zwippie Avatar answered Sep 23 '22 22:09

zwippie