minicart.js and turbolinks in rails are not compatible.
One workaround is to turn off turbolinks on any page with a minicart, and to wrap the paypal.minicart.render() call in a document.ready so it doesn't try to create elements on every page change.
minicart.js and turbolinks in rails are not compatible.
One workaround is to turn off turbolinks on any page with a minicart, and to wrap the paypal.minicart.render() call in a document.ready so it doesn't try to create elements on every page change.