jhund / filterrific

Filterrific is a Rails Engine plugin that makes it easy to filter, search, and sort your ActiveRecord lists.
http://filterrific.clearcove.ca
MIT License
910 stars 124 forks source link

Filters not working #134

Closed radvc closed 7 years ago

radvc commented 7 years ago

I copy the students demo of filterrific to Rails 5.1, but the filters are not working(search, country etc..). I don't know why is this happening, anyone here encounter this issue?

Im using ruby version 2.4 and rails 5.1

sanatem commented 7 years ago

I had a problem with the params[:filterrific] I solved doing this:

@filter = initialize_filterrific(
  Promo,
  params[:filterrific].permit!.to_hash,
  select_options: { },
  persistence_id: 'shared_key',
  avalaible_filters:[
    :by_name
  ]
) or return