I've looked over the internet and found some instructions for this question:
Using jQuery plugins in Rails 3
http://ridingwithrails.wordpress.com/2011/12/28/rails-3-1-installing-lightbox-jquery-plugin/
Here is exactly what I do to install a Jquery plugin in rails. I can never get access to the new methods in the console. (I get the error, the function doesn't exist)
1 - I Download the plugin and put it in:
vendor/assets/javascripts/plugin.js
2 - I add the path to the file in application.js:
//= require jquery
//= require jquery_ujs
//= require plugin
//= require_tree .
3 - I do the same for the css if it applies. (in the css folders)
Some plugins I've tried that with are: jquery-cookie jquery-star-rating But it never works. What I'm I doing wrong?
Thanks for you answers
EDIT: When I check the source of my views the *.js files of the plugins are included but whenever I try to use a function from those plugins I get for example:
[17:18:59,927] TypeError: $.cookie is not a function