Cannot read property 'mData'

Cannot read property 'mData'

asadalibhattiasadalibhatti Posts: 1Questions: 1Answers: 0
      <table class="table table-striped table-bordered" id="all_medicine">
          <thead>
            <tr>
              <th>Name</th>
              <th>Type</th>
              <th>Vendor</th>
              <th>Formula</th>
              <th colspan="3"></th>
            </tr>
          </thead>
          <tbody>
            <% @medicines.each do |medicine| %>
              <tr>
                <td><%= medicine.name %></td>
                <td><%= medicine.medicine_type.name %></td>
                <td><%= medicine.vendor %></td>
                <td><%= medicine.formula %></td>
                <td>
                  <div class="btn-group">
                    <%= link_to edit_hospital_medicine_path(current_hospital, medicine), class:'btn btn-sm btn-default' do  %>
                      <i class="fa fa-edit"></i>  Edit
                    <% end %>
                    <%= link_to hospital_medicine_path(current_hospital, medicine, format: :json),remote:true, method: :delete, data: { confirm: 'Are you sure?' }, class:'btn btn-sm btn-danger' do %>
                      <i class="fa fa-trash-o"></i> Delete
                    <% end %>
                  </div>
                </td>
              </tr>
            <% end %>
          </tbody>
        </table>
This discussion has been closed.