Walter Davis wrote in post #1165528: > On Dec 27, 2014, at 8:34 PM, David Williams <[email protected]> > wrote: > >> >> I used the modernizr gem and installed it directly to support the >> JavaScript. >> >> Even so, with everything put in place. My drop-down buttons aren't >> working..Only for the top-bar which has no-turbo-link added to disable >> them. >> >> If you found out a way to solve this issue. Please, let me know. I'm >> currently at a stand still and many of the Zurb features are completely >> useless without the JS enabled. > > Anything that is using the page load event to trigger setup will > generally fail in the presence of turbolinks. You can either disable > them entirely, or you can wrap your foundation() call in an observer on > the page:change synthetic event. In jQuery, that's probably going to be > something like this: > > $(document).on('page:change', function(){ > // your foundation methods here > }); > > Walter
Should I just disable turbolinks? for javascript files? Also, I have certain files outside of the vendor folder or does ruby automatically pickup all files inside of the javascript directory including the ones in folders? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/12ef571a46484ae25caccddeb5e2375b%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.

