Open awh-tokyo opened 7 years ago
Hi, I was having the same issue. I managed to resolve it using this particular commit.
Enter this into your gemfile:
gem 'filterrific', :git => 'https://github.com/jhund/filterrific.git', :ref => '292ecd953df4ec70f2f9a879105ef5aba5b77e95'
This issue still persists.. if one of the HTTP parameters is hash/array it will throw an unpermitted parameter error.
If my inputs are as follows:
Parameters: {"utf8"=>"✓", "filterrific"=>{"with_tags"=>{"and_or"=>"or", "tags"=>["10", "12", "6"]}, "searchquery"=>""}, ""=>"1504129085411"}
I end up with "Unpermitted parameter: tags".
I've traced it down to the following lines in param_set.rb:
which does not account for arrays inside ActionController::Parameters.
Rather than trying to account for every possible situation, would it make sense to allow for explicit setting of permissible_filter_params in the opts to initialize_filterrific?