Search code examples
ruby-on-railszurb-foundationturbolinks

foundation installation and turbolinks


I just installed foundation in a rails 4 app. Foundation overrwites the layout file.

It replaces:

  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>

to just:

<%= stylesheet_link_tag    "application" %>

is there some sort of incompatibility or should I append back the turbolinks tracking directive?


Solution

  • There is no incompatibility. I've used Turbolinks with Foundation without any issues on several projects.

    At any rate, I wouldn't think Foundation would affect Turbolinks, as it's just an HTML/CSS/jQuery framework. From what I understand, Turbolinks works by preloading data from links on a page so if you click one, the page loads quicker.