Just wondering whether there\'s a way to use turbolinks directly in a rails link_to helper, a quick bit of googling didn\'t uncover anything of note, here\'s the type of thi
You can use a symbol without problems to generate the following code:
Giraffe
Just do the following:
<%= link_to 'Giraffe', giraffe_path(@giraffe),
:data => { :no_turbolink => true } %>
Note: :no_turbolink
will become no-turbolink
and the value will be converted to JSON automatically using to_json
, e.g. true
to "true"
.