The best place to start is to completely read the Readme section for the
plugin you are trying to use,
https://github.com/CWSpear/bootstrap-hover-dropdown and after that try
again and implement it on your website.

Check the console without the plugin to see if you get any turbo links
errors, if you don't get any error proceed with integrating the plugin with
your new knowledge from the Readme document.

If it's not working, then check the console again, if you get any new
errors you are probably missing something and need to fix those js errors
(make sure you check the gem dependencies as well).


ok, I just tried $('.dropdown-toggle').dropdownHover(options); and I get ...
> VM155:1 Uncaught ReferenceError: options is not defined
>     at <anonymous>:1:37


Yes, that's true because I gave you the example from the Readme, you need
to customise it for your code.

$('YOUR_CLASS').dropdownHover({YOUR_OPTION: VALUE});

Ex: $('.dropdown-toggle').dropdownHover({delay: 5000});


This will tell you if the JavaScript implementation was correct, if you
can't make that work in the console it's probably that.


After following all of the above steps you still can't make it work, I'll
ask for more details and try and help you get it working.

Cheers

-- 
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 rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL37D8EZPA59_db42OAoADp136WRgM13VKrFkC8-hrnz25U4oQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to