README.rdoc in simple_datatables-0.1.2 vs README.rdoc in simple_datatables-0.1.3
- old
+ new
@@ -47,10 +47,26 @@
* will_paginate for nice pagination request syntax mapping
* jsonify for simple output generation
Gem works only with rails 3.1.
+Gem includes datatables library and fnSetFilteringDelay plugin so you haven't include it by yourself.
+
+== Search for all fields
+
+Note that fulltext search will work only with text fields due to meta_search restrictions. To prevent errors use bSearchable: false for non-text columns in aoColumns field.
+
+== Regex search
+
+Due to meta_search restrictions it is impossible to use regex search for now.
+
+Instead, this gem recognizes bSearch flag as "contains" meta_search finder.
+
+By default "starts_with" is used due to database performance reasons.
+
+Independent fields search will always search using "starts_with" finder.
+
== Example
The following code will show products list datatables. Manufacturer is belongs_to association for Product.
In your controller:
@@ -90,11 +106,9 @@
{"sName":"manufacturer_name"},
],
"bServerSide" : true,
"fnServerData" : simpleDatatables
});
-
-Note that fulltext search will work only with text fields due to meta_search restrictions. To prevent errors use bSearchable: false for non-text columns in aoColumns field.
== Copyright
Copyright (c) Grigory Dmitrenko, 2011. See LICENSE for details.