Closed jasper502 closed 4 years ago
Hi there! Any news?
I gave up trying and stuck with v0.4. I plan to try and upgrade again over the Christmas break.
Ok Keep me updated!
@jasper502 I encountered this issue when I did not pass in the params object to the Datatable constructor in the controller. In addition, I was overriding the initialize method without calling super. Once I did those things, the error went away. I'm not saying you are doing exactly those things, but those might be places to check... hope that helps!
I think I fixed it but now have other unrelated issues (will post new issue on that). Followed the examples line for line and it seems to work now.
I brought to life a dormant Rails app that had the old version of this gem. I have followed all the upgrade instructions and even created a new datatable controller via the generator. My JSON fails each time with:
undefined method
searchable?' for nil:NilClass ` which I traced back to:build_conditionsajax-datatables-rails (1.0.0) lib/ajax-datatables-rails/orm/active_record.rb
Can't seem to find this error anywere else. I can post my code if needed but I literally have followed the basic example in the readme.