I've read all the posts about using DataTables and everything makes sense--however I still can't solve the problem so I'm posting here.
I'm working on someone else's Rails app, and they have dataTables set up. Specifically,
<table class="responsive table table-striped table-bordered dataTable">
<thead>
<tr>
<th>Name</th>
<th>Last Activity</th>
<th>Active On</th>
</tr>
</thead>
<tbody>
So it's implementing dataTables. However whenever I try to pass a parameter so I can enable user sorting of the columns, it doesn't work. I've tried:
- adding
sDom="Rlfrtip"
to the table. - Adding bSortable="true" to the
<th>
. - Messing around with
aaSorting
.