I am developing a site using Foundation 5, which I host on Heroku. Yesterday, all javascript-dependent Foundation widgets stopped working on Heroku. In my case, this means all my modals and my slider in orbit. It still works flawlessly on my local machine.
I always precompile my assets (rake assets: precompile) and submit the compiled version before clicking on Heroku with git.
I tried and updated between Foundation versions 5.0.2.0 and 5.0.3.1 and a few other things, but I'm just fixated on where to even get started. I am not too good with javascript debuggning.
Production.rb
config.serve_static_assets = true
config.assets.js_compressor = :uglifier
config.assets.compile = true
config.assets.digest = true
config.assets.version = '1.0'
-
application.js
$(function(){ $(document).foundation(); });