filterrific icon indicating copy to clipboard operation
filterrific copied to clipboard

Fix parameter permit

Open patrocc6 opened this issue 8 years ago • 9 comments

Fixes parameter permit for multi-select inputs and multiple inputs to a single scope.

patrocc6 avatar Nov 30 '16 02:11 patrocc6

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.

edwardmp avatar Dec 03 '16 15:12 edwardmp

Ran into this one today... Trying to do a date range and get the Unpermitted Parameter...

JSanderbeck avatar Dec 19 '16 23:12 JSanderbeck

@JSanderbeck did you install the gem using this github pull request as a source to see if this solves your issue?

edwardmp avatar Dec 20 '16 16:12 edwardmp

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?

JSanderbeck avatar Dec 20 '16 22:12 JSanderbeck

Ok. Manually updated file and this fix works for my problem. Just waiting for the merge so I can pull again...

JSanderbeck avatar Dec 21 '16 21:12 JSanderbeck

@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'

edwardmp avatar Dec 27 '16 02:12 edwardmp

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

JSanderbeck avatar Dec 28 '16 16:12 JSanderbeck

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

usamagoldev avatar Feb 23 '17 07:02 usamagoldev

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

usamagoldev avatar Feb 25 '17 09:02 usamagoldev