Hi,

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>:
  <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">
  </head>

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!

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/6ae8d4ccaf2a07384291488fa596f8dd%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to