On 2 December 2015 at 16:11, Jeremy Montesinos <lists@ruby-forum.com> wrote:
> 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
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.
Colin
> !
> 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 rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> 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.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvBD1URyTZfyjn70zM_de9-SrPm2q7DD40bPnPY6m8WAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment