CSV upload data overrides my DataTable

CSV upload data overrides my DataTable

cmcollin41cmcollin41 Posts: 2Questions: 1Answers: 0
edited September 2014 in Free community support

I've tried using the DataTables debugger to solve this, as well as Stack Overflow, with no success.

I have successfully set up DataTables in the past, but for whatever reason I'm running into a snag.

When my DataTable has no data in it, it looks and functions properly. When I upload a .csv file it overrides my DataTable and removes all of the functionally; it essentially becomes just a bootstrap table. If hardcode the date into the table it looks and functions properly.

Link: http://detlefbird.herokuapp.com/player_evaluations

Any ideas?

Thank you in advance

Answers

  • cmcollin41cmcollin41 Posts: 2Questions: 1Answers: 0

    I figured it out.

    I deleted:

    <td><%= link_to 'Edit', edit_player_evaluation_path(player_evaluation), class: "btn btn-warning btn-xs" %></td>
    <td><%= link_to 'Destroy', player_evaluation, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger btn-xs" %></td>

    Does anybody know why those two tables would cause the DataTables to not work?

This discussion has been closed.