Open Rubioli opened 7 years ago
For future reference issues like this are better raised on StackOverflow as GitHub Issues are for tracking bugs. Without seeing all your code my initial sense is that you don't have the entire view layout set up for updating via AJAX. I would make sure you have a
_list.html.erb
partial for results, index.html.erb
with the filterrific form, and index.js.erb
which "updates the list after the filter settings were changed"I would recommend starting from the boilerplate code to get it working in your environment, and then adding your desired features from there.
In my application I have a
Post
model and when a post is submitted, they will always have acategory
.My categories are news, humor, facts, celebrities, food etc
Currently users can sort posts based on one category at a time. I did it by following the demo application and docs:
/// My view
This works fine now. But what Im trying to do is, for instance user can select news & facts and get the results based on these categories.
I have tried with:
With this code when I select checkbox, I can see the
filterrific_spinner
But it doesn't filter the posts based on them and I still see the same posts.Using filterrific 2.1.2 from https://github.com/ayaman/filterrific.git (at master)
Any help is very appreciated 👍