New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filterrific Not Passing Multiple Parameters to Scope #114
Comments
I seem to be having the same problem, are we missing something? 🤔 |
Having the same problem here as well. I did some digging in the code and it seems that the issue is happening because Filterrific uses the |
I have a filterrific scope that accepts multiple parameters. The scope appears to be functioning correctly (I can call Marketplace::Lot.with_price({}) in the console and it returns the correct results), but filterrific isn't passing any data to it when I enter information on the form.
Here is my filterrific declaration in the model
Here is what my controller looks like:
and my view
When I submit the form, the price fields appear in the params hash
However, it never gets to the scope (I have a binding.pry in the scope that never gets hit). I should note that all other scopes are working correctly.
I'm sure I'm missing something obvious but I can't find it for the life of me.
The text was updated successfully, but these errors were encountered: