Open jonas-zipprick opened 7 years ago
I would like to know if it is already solving?
the changes was reverted back. and now looks like https://github.com/jbox-web/ajax-datatables-rails/blob/master/lib/ajax-datatables-rails/datatable/column.rb#L46
so now 2 params: column
, search_value
ok, how can I call the custom filter?
I need to searching by nested models: payment.reservation.customer.name
you can use Arel
syntax like here https://github.com/ajahongir/ajax-datatables-rails-v-0-4-0-how-to/blob/master/app/datatables/city_datatable.rb#L35
I can't understand that, I'm creating a Proc, but in the method I'm just receiving the search parameter, but not the column object,
Look at this:
I am not sure what version are you using now. BUT you can see at master branch - https://github.com/jbox-web/ajax-datatables-rails/blob/master/lib/ajax-datatables-rails/datatable/column.rb#L46 than proc is recieving column object and formated_value param. so make sure than you are using a right version.
couple commits ago someone removed column object but after we reverted it back.
I recoment to use master branch but it could be not stable.
I was watching the ruby gem and is linked from https://github.com/ajahongir/ajax-datatables-rails
and I seen that repository is https://github.com/jbox-web/ajax-datatables-rails
, Alright?
I can't understand that, into my Gemfile
use gem 'ajax-datatables-rails', github: 'ajahongir/ajax-datatables-rails', branch: 'v-0-4-0'
and It worked...
https://github.com/jbox-web/ajax-datatables-rails you should use this one
Ok, Thanks
the parameter passed to the condition is now the prcessed search term and not the entire column object. The file app/datatables/city_datatable.rb still works on the column object.