filterrific
filterrific copied to clipboard
Fix parameter permit
Fixes parameter permit for multi-select inputs and multiple inputs to a single scope.
Thanks, noticed this issue recently while using such params in the past did actually work. Edit: doesn't work in my case, I still get 'Unpermitted parameter'. But my issue more resembles #114 than your case so I will post this issue there too.
Strange as
permissible_filter_params contains ["sorted_by", "with_card_id", "with_company_id", "with_month_year", "with_numberplate_id"]
But still I get 'Unpermitted parameter: with_month_year'.
With_month_year
is a hash with two items: month & year.
Ran into this one today... Trying to do a date range and get the Unpermitted Parameter...
@JSanderbeck did you install the gem using this github pull request as a source to see if this solves your issue?
No, I did not... I will try that... Never pulled from a git source... Do I just specify the master or the branch I want to test?
Ok. Manually updated file and this fix works for my problem. Just waiting for the merge so I can pull again...
@JSanderbeck that's great to hear.
If you didn't know, you could just use pull request #115 in your Gemfile like this:
gem 'filterrific', git: 'https://github.com/ayaman/filterrific.git'
I did the pull like you recommended and it worked on one of my development machines but not the other. It pulls the Master branch but the patched file is not there. Any ideas why?
John
Fixes parameter permit for multi-select inputs and multiple inputs to a single scope is fixed by pulling request by If you didn't know, you could just use pull request #115 in your Gemfile like this: gem 'filterrific', git: 'https://github.com/ayaman/filterrific.git' after this multi select params permit is fixed but single select params not working
i'm using this gem 'filterrific', git: 'https://github.com/ayaman/filterrific.git' in gem file and fixing strong params in controller in reference to this => Fix strong params usage in Dashboard::ProtocolsController. Use a fork… … of filterrific gem until bug is fixed. but nothing is working except multiple params for single scope