Browse files

Foundation note.

Added a note for those who use this with Zurb Foundation.
  • Loading branch information...
1 parent 074c17f commit 53e84821c864d52a936207f947509594cfff7e66 @iamjbecker iamjbecker committed Feb 9, 2014
Showing with 17 additions and 1 deletion.
  1. +17 −1 README.md
View
18 README.md
@@ -29,8 +29,8 @@ Add it to your JavaScript manifest file, in this order:
``` js
//= require jquery
-//= require jquery_ujs
//= require jquery.turbolinks
+//= require jquery_ujs
//
// ... your other scripts here ...
//
@@ -39,6 +39,22 @@ Add it to your JavaScript manifest file, in this order:
And it just works!
+NOTE: Those who use foundation, the `$(function(){ $(document).foundation(); });` has to come before the turbolinks gem.
+
+``` js
+//= require jquery
+//= require jquery.turbolinks
+//= require jquery_ujs
+//
+// ... your other scripts here ...
+
+$(function(){ $(document).foundation(); });
+
+//
+//= require turbolinks
+```
+
+
## API and Customization
### $.turbo.use

0 comments on commit 53e8482

Please sign in to comment.