JoelQ/ajax-datatables-rails — pull request #10 by suranyami (2012-11-27 02:39:05+00:00)
Title: Corrected usage example, case-insensitive query

I couldn't get this to work correctly for me with Postgres and ActiveRecord 3.2.8 because I was getting an error:

undefined method 'offset' in

This was because in my `get_raw_records` method I was doing as you suggested in the README:

def get_raw_records
User.all
end

Instead, it should read:

def get_raw_records
User
end

Also, I found stripping whitespace and making the query case-insensitive (with ILIKE) helped the user interface feel more obvious to users.