Skip to main content

Posts

Showing posts with the label filterrific gem

Filterrific - Rails Plugin for search, sort & filter data

What is filterrific? 'filterrific' gem is used for filtering the data only. It is a Rails Engine plugin that makes it easy to filter, search, and sort your ActiveRecord lists. Ruby On Rails Gem Filterrific Features of filterrific gem: It Integrates with pagination Filters can be reset to default settings Makes heavy use of ActiveRecord Scopes API option to use Filterrific with Rails API mode. Just use gem 'filterrific', require: 'filterrific_api' in your Gemfile ActionController helpers to shuttle filter params from ActionView forms to ActiveRecord based models, and to return matching records back from ActiveRecord to ActionView It depends on ActiveRecord scopes for building DB queries Can be used for HTML/JS/JSON/XML response formats It is used to run filter settings from a filter UI to the controller and ActiveRecord It persists filter settings in the HTTP session or DB for saved searches Dependencies: Rails - 3.x and a...