I want to use LiveFilter https://github.com/mikemerritt/LiveFilter in my rails app. It does exactly what I want to do – filter existing elements using a search box.
How would I go about adding this (or any other) jquery plugin to rails 3.1, so that it works with the asset pipeline? If you know, will it be different in 3.2?
Add the
livefilter.jsfile toyour app/assets/javascriptsdirectory, and add a require directive to your JS manifest(s) (e.g.application.js) :AFAIK, the asset pipeline works the same in 3.1 and 3.2.