Cannot read property 'mData'
Cannot read property 'mData'
![asadalibhatti](https://secure.gravatar.com/avatar/a3c04339ea7aeabde6925b264c505cf3/?default=https%3A%2F%2Fvanillicon.com%2Fa3c04339ea7aeabde6925b264c505cf3_200.png&rating=g&size=120)
<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.