Plug-in not working for update call, converting PUT request to POST request automatically in Rails
Plug-in not working for update call, converting PUT request to POST request automatically in Rails
Dreamrulez
Posts: 2Questions: 0Answers: 0
I'm using the Plug-in for a form within a Table
The form works perfectly for Creating (POST) the post. But, when I try to update the post's information using the same form within the table, it returns me a routing error:
No route matches [POST] "/posts/1"
For Update the call should have been PUT but it is using POST here. It only happens when I use the plug-in otherwise the Update is working fine. Please look into the following matter.
The form works perfectly for Creating (POST) the post. But, when I try to update the post's information using the same form within the table, it returns me a routing error:
No route matches [POST] "/posts/1"
For Update the call should have been PUT but it is using POST here. It only happens when I use the plug-in otherwise the Update is working fine. Please look into the following matter.
This discussion has been closed.
Replies
Thanks,
Allan
jquery.dataTables.js
demo-table.css
/media/images folder
$(function() {
$('#shares').dataTable( {
"sPaginationType": "full_numbers",
"bJQueryUI": true
});
});
Basically I'm following this tutorial : http://www.jacoulter.com/2012/01/03/rails-spice-up-your-tables-with-datatables/
Allan