2

I was wondering if this is possible. I have seen stack questions ask this and the answer seems to be:

<%= link_to 'Manage', '/manage?id='+blog.id.to_s+'#dashboard', :class => 'btn btn-primary', :data-no-turbolink => false %>

But I get the error:

undefined local variable or method `no' for #<#<Class:0x007f8d5270a440>:0x007f8d54a5af30>

So I am wondering what the actual answer is for this. How do you say "don't use turbo links when following this link.

user3379926
  • 3,855
  • 6
  • 24
  • 42

1 Answers1

1

You are using wrong syntax. Try:

<%= link_to 'Manage', '/manage?id='+blog.id.to_s+'#dashboard', :class => 'btn btn-primary', "data-no-turbolink" => false %>

OR

<%= link_to 'Manage', '/manage?id='+blog.id.to_s+'#dashboard', :class => 'btn btn-primary', data: {no_turbolink: false} %>
Mandeep
  • 9,093
  • 2
  • 26
  • 36