editor & ruby on rails datasource

editor & ruby on rails datasource

jaredjared Posts: 1Questions: 0Answers: 0
edited December 2012 in Editor
I'm new to rails and datatables and trying to understand how to connect the data to the editor.

I'm guessing the line i need to update is: "ajaxUrl": "php/browsers.php" but cant seem to find any documentation on how to do this with rails.

Can anyone point me in the right direction. Thanks!

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    edited December 2012
    You are absolutely correct that is the line on the client-side that would need to be modified to point at your RoR server-side data controller.

    There isn't any documentation that is unique to Rails at the moment for Editor, but the documentation for the client-server communication protocol that Editor uses is available here, which allows any server-side environment to work with the Editor client-side library (it just needs to support this protocol):

    http://editor.datatables.net/server/

    Regards,
    Allan
This discussion has been closed.