-
Notifications
You must be signed in to change notification settings - Fork 36
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
Custom search #50
Comments
I would expect the |
I think datatables is treating Try adding col :member_id, sql_column: 'invoices.member_id' You might not even need a custom search method anymore! |
Nice :) That fixes it. Should we consider this a bug or should I be adding this parameter in other places too? |
I don't consider this a bug. Datatables is pretty smart about a single model (with it's belongs_to and has_many) but when you're doing crazy joins and such it needs a little bit of help :) I will add to the documentation about this! Thanks as always @Nerian |
Sounds good :) Thanks for your work. The new version is working quite well :) |
Hi,
I am trying to implement a custom search method, but the collection I am getting in the search method is an array instead of a scope.
The
collection
in thesearch
method holds an array of arrays. But what should be coming out of the collection block is a scope.This is the type of the
charges
variable in the collection block:What am I doing wrong?
The text was updated successfully, but these errors were encountered: