Menu icon Foundation

Developer | Norwich, UK

My Posts

No Content

My Comments

Richard Washington commented on Samuel Stacey's post over 4 years

Hi All,

For anyone looking for a good solution to this which does not involve turning off the very useful turbolinks please see below:

You will need to add

gem 'jquery-turbolinks'

to your Gem file then do the usual bundle install

Following this change your javascript manifest file (application.js) to run in the following order:

//= require jquery
//= require jquery.turbolinks
//= require jquery_ujs
//= require foundation
//= require_tree .
$(function(){ $(document).foundation({});
// any other code etc
//= require turbolinks

This will ensure turbolinks runs AFTER everything else (especially foundation in this case).

More information can be found at https://github.com/kossnocorp/jquery.turbolinks.

BOOM it all now works.

Posts Followed

No Content

Following

    No Content

Followers

My Posts

No Content

My Comments

You commented on Samuel Stacey's post over 4 years

Hi All,

For anyone looking for a good solution to this which does not involve turning off the very useful turbolinks please see below:

You will need to add

gem 'jquery-turbolinks'

to your Gem file then do the usual bundle install

Following this change your javascript manifest file (application.js) to run in the following order:

//= require jquery
//= require jquery.turbolinks
//= require jquery_ujs
//= require foundation
//= require_tree .
$(function(){ $(document).foundation({});
// any other code etc
//= require turbolinks

This will ensure turbolinks runs AFTER everything else (especially foundation in this case).

More information can be found at https://github.com/kossnocorp/jquery.turbolinks.

BOOM it all now works.

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content