5

I am using jquery-datatables-rails in one of my application and displaying a grid.

In order to make it editable I added jquery-datatables-editable-rails in my gemfile.

However, I can't find a way to make the rows editable.

Any help would be highly appreciated.

Here is how my coffee script file for enabling datatable looks like

jQuery ->
 $('#products').dataTable
   sPaginationType: "full_numbers"
   bJQueryUI: true
5
  • 1
    datatables.net/release-datatables/examples/api/editable.html Commented Feb 2, 2013 at 10:57
  • Thanks Jonathan, is there an easy way to use this in a rails app. I saw jquery-datatables-editable-rails gem, but can't find an example on how to use it. Commented Feb 2, 2013 at 11:06
  • 1
    rails will be use to fetch the data in the database, the rest will be on client side Commented Feb 3, 2013 at 11:51
  • I am attempting the same thing and I'm confused if I need both gems, jquery-datatables-rails and jquery-datatables-editable-rails. Some example code would be awesome if anyone has done this in Rails. Commented Aug 21, 2013 at 17:04
  • @binvij did the below answer work? Commented May 1, 2015 at 0:51

1 Answer 1

2

This may be useful:

http://www.datatables.net/forums/discussion/17213/table-editing-with-best-in-place-in-ruby-on-rails

It describes how to make your datatables editable with the best_in_place gem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.