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

Unable to use search_select_filter on collections #336

Open
heaven opened this issue Feb 21, 2021 · 3 comments
Open

Unable to use search_select_filter on collections #336

heaven opened this issue Feb 21, 2021 · 3 comments

Comments

@heaven
Copy link

heaven commented Feb 21, 2021

For example, with has_many :tags, which yields:

undefined method `tags_eq' for #<Ransack::Search:0x00007f9056792668>

And selected_list_filter doesn't exist.

@ldlsegovia
Copy link
Member

search_select_filter is used with belongs_to associations.

@heaven
Copy link
Author

heaven commented Aug 17, 2021

@ldlsegovia yep but there's no alternative for collections it seems.

@danielricecodes
Copy link

This is happening to me even though the model has belongs_to for the model I'm trying to build a filter for.....

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

No branches or pull requests

3 participants