foundation, yarn, webpack and turbolinks
start your rails application when using foundation, yarn, webpack and turbolinks
Depending on requiring turbolinks in your app or not, here is what you should include in your 'javascript/packs/application.js':
require("turbolinks").start()
....
$(document).on('turbolinks:load', function() {
$(function(){ $(document).foundation(); });
});
or
$(function(){ $(document).foundation(); });
happy times!