Turbolinks not working


i'm working on a project in Rails. When I click on a "link_to" button
turbolinks is not working. But when I create a "<a>" link, it's working
Why ?
I use Google chrome for look if it working. But in firefox it's not
working too.
My app.js :
//= require jquery
//= require bootstrap-sprockets
//= require ckeditor/init
//= require jquery_ujs
//= require jquery.turbolinks
//= require bootstrap-slider
//= require jquery.tablesorter.min
//= require jquery.tablesorter.widgets.min
//= require fixedheadertable
//= require nprogress
//= require nprogress-turbolinks
//= require turbolinks
//= require_tree .

My app.html.erb <head>:
    <title><%= @title + " - Tick{Master}" %></title>
    <%= stylesheet_link_tag 'application', media: 'all',
'data-turbolinks-track' => true %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track' =>
true %>
    <%= csrf_meta_tags %>
    <meta name="viewport" content="width=device-width, initial-scale=1">

My two links :
        <li><%= link_to "Tous les incidents", incidents_url, class: "",
:method => :get %></li>
        <li><a href="/incidents">Tous les incidents</a></li>

The gem 'jquery.turbolinks' not working too.

Sorry for my poor English, i'm french. Thanks!


i'm working on a project in Rails. When I click on a "link_to" button
turbolinks is not working. But when I create a "<a>" link, it's working

How do you know it is not working?

Show us the source of the link_to and copy/paste the html that it
produces by viewing the source in the browser (ctrl+u in firefox).
Just the html around the link.


The Html :
<!DOCTYPE html>

    <title>Créer un incident - Tick{Master}</title>
    <link rel="stylesheet" media="all"
data-turbolinks-track="true" />
    <meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token"
    <meta name="viewport" content="width=device-width, initial-scale=1">
  <body id="connected"></body>
  <div class="nav-side-menu">
  <a class="brand">
  <i class=" fa fa-bars fa-2x toggle-btn" data-toggle="collapse"
  <div class="menu-list">
    <ul id="menu-content" class="menu-content collapse out">
      <li class="new_incident_button"><a href="/incidents/new"><img
alt="" class="fa-img"
        <a href="/incidents/new" data-no-turbolink="true">
          <i class="fa fa-dashboard fa-lg">Nouvel incident</i>

      <li data-toggle="collapse" data-target="#incidents"
class="collapsed active"><img alt="" class="fa-img"
src="/assets/accidents-aeb9ce9e10abf41731af384353820dc9.png" width="32"
height="32" />
        <a href="#"><i class="fa fa-gift fa-lg"></i>Incidents</a>
      <ul class="sub-menu collapse" id="incidents">
        <li><a class="" data-method="get" href="/users/1">Mes
        <li><a class="" data-method="get"
href="http://localhost:3000/incidents">Tous les incidents</a></li>
        <li><a href="/incidents">Tous les incidents</a></li>
        <li><a data-method="get" href="/users/1/allincidents">Incidents

As you can seen, i have write "data-no-turbolink="true"" at the first
link but not at the others links. So, when i create links with link_to,
turbolinks not working but with <a></a> it's working.

Up !

For me, at least, you have still not provided enough information to
work out exactly what your problem is. I don't know whether you are
saying that your erb source is not producing the correct html (but you
have not shown the erb source so difficult to judge that) or whether
you are saying that the html that you have shown is not performing as
it should (but in that case you have not told us what is not happening
that should).

By the way, to post something and then 'up' it in six hours is
ridiculous. Most of us need at least that much sleep at some time in
the day and many of us only do this in our spare time. Remember that
this mailing list has a world wide audience and we are not all in the
same time zone.