Rails datatables ajax json 414 URI request too big

So, I tried the Railscasts tutorial, and also one for the ajax-datatables-rails gem. I am creating a list of clients from a database, not users. I believe that I narrowed it down to the fact that when using the method GETthrough Datatables', sServerMethodI get 414 with " Request-URI too large ". When I use the method POST, I just get null values ​​for all attributes except idthat makes sense, since POST json is used to create the client. Any help is much appreciated!

Here is my code and diagnostic answer:

// custom.js    
$("#datatable").dataTable({
        "bJQueryUI": true,
        "sPaginationType": "full_numbers",
        "bProcessing": true,
        "bServerSide": true,
        "sAjaxSource": $('#datatable').data('source'),
    });

Answer:

http://127.0.0.1:3001/clients.json
Request-URI Too Large
+5
source share
1 answer

, .

Gemfile, :

gem 'thin'
+5

All Articles