Implementing Editor with Ruby on Rails

Implementing Editor with Ruby on Rails

YOMYOM Posts: 51Questions: 21Answers: 1

I'm currently using datatables in my rails project and am looking to get it setup with the editor functionality. I know the main hurdle is setting up the serverside processing script in ruby to work with the editor. My main question is: what core functionalities does this server side script need? Is manipulating the database and responding with a JSON enough or does it need to accomplish something else?

I've previously done this in PHP with the prebuilt libraries, so all of this functionality has always been behind the curtains for me.

Thanks,
Philip

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Answer ✓

    Hi Philip,

    The full details of the information Editor sends to the server and then what it expects back is documented here. It is basically as you say, manipulate the db and then send back JSON.

    There is one important point to make - in DataTables terminology "server-side processing" means the server-side doing filtering, sorting, etc. You would only need that if you are using tens of thousands or more rows.

    That is distinct from Editor's server-side scripts.

    Allan

This discussion has been closed.