zurb/foundation-rails — pull request #93 by richsinn (2014-08-16 09:30:25+00:00)
Title: Moving application `javascript_include_tag` to the HTML <head>.

Rails 4 now includes Turbolinks by default, therefore adding JavaScript
at the bottom of the

element will not play nice with Turbolinks.
The application's JavaScript should be loaded in the HTML

.

If a user wants to disable turbolinks, and move the application's
JavaScript files back to the bottom of the HTML

element, then
they can do so, but the default templates that gets generated by the
"foundation:install" generator should declare the JavaScript in the
HTML

.

Sources:
* https://github.com/rails/turbolinks#evaluating-script-tags
* http://stackoverflow.com/a/20169679/631834