Using turbolinks in a Rails link_to

前端 未结 6 1236
臣服心动
臣服心动 2020-11-29 03:14

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

6条回答
  •  暖寄归人
    2020-11-29 03:54

    @Joseph you are right, but only small change:

    <%= link_to "Foo", new_foo_path(@foo), data: { turbolinks: 'false' } %>
    

    when I'm typing turbolinks: false doesn't work with bool, works only when I use string for value turbolinks: 'false'. So maybe someone help this information ;).

提交回复
热议问题