Skip to content
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

Remove Filter Referencing Wrong Model #4001

Closed
ghost opened this issue Jun 19, 2015 · 2 comments
Closed

Remove Filter Referencing Wrong Model #4001

ghost opened this issue Jun 19, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 19, 2015

Currently I have a model Shirt, and I want to remove a filter because it is a has_many :through association.

So, I have Shirt, ShirtCollection, Collection.

Without trying to remove the filter, I get:
undefined method `shirt_collections_id_eq' for Ransack::Search<class: Shirt, base: Grouping <combinator: and>>:Ransack::Search

When I attempt to remove the filter with "remove_filter :shirt_collections", I get:
uninitialized constant Shirt::Collections

Thank you very much in advance.

@timoschilling
Copy link
Member

please try:

remove_filter :shirt_collection
# or
remove_filter :shirt_collections_id

@timoschilling
Copy link
Member

I’m going to close this since you haven’t responded. Please feel free to update this issue with additional information so it can be reconsidered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant