Zurb Foundation 5, modernizr not found

asset-pipeline, assets, http-status-code-404, ruby-on-rails, zurb-foundation

Solution

Update 3/13/14

I don't have this problem on heroku with foundation-rails-5.1.1.0. Adding `javascript_include_tag "vendor/modernizr"` in the head works. I could remove the modernizr I copied to the vendor directory and remove the extra line in app.js

I had the same problem on heroku, the app would crash because it couldn't find modernizr.js. Here's how I fixed it:

- Copy modernizr.js from foundation (wherever you installed it with bundler) into vendor/assets/javascripts/.

- Add `//= require modernizr` below `//= require_tree .` on application.js.

- Remove `javascript_include_tag "vendor/moderizr"` from application.html

Problem

I get this when using Foundation 5.0.2.0 in production mode. On Rails, Unicorn, NginX & Ubuntu. ``` "NetworkError: 404 Not Found - http://mydomain.com/javascripts/vendor/modernizr.js" ```

Original source