Skip to content

Commit e2a18d5

Browse files
committed
Added different examples
1 parent 4076bef commit e2a18d5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -783,16 +783,15 @@ then in your views :
783783
then in your Coffee/JS :
784784

785785
```coffee
786+
# send params in form data
786787
$ ->
787788
$('#posts-datatable').dataTable
788789
ajax:
789790
url: $('#posts-datatable').data('source')
790-
contentType: 'application/json'
791791
type: 'POST'
792-
data: (d) ->
793-
JSON.stringify d
794792
# ...others options, see [here](#5-wire-up-the-javascript)
795793

794+
# send params as json data
796795
$ ->
797796
$('#users-datatable').dataTable
798797
ajax:

0 commit comments

Comments
 (0)