Changed Ingredient#destroy to ajax
This commit is contained in:
@@ -27,7 +27,9 @@
|
||||
<%= i.source.name if i.source.present? %>
|
||||
<%= ", #{i.source_ident}" if i.source_ident.present? %>
|
||||
</td>
|
||||
<td class="action"><%= delete_link ingredient_path(i), data: {} %></td>
|
||||
<td class="action">
|
||||
<%= delete_link ingredient_path(i), {remote: true, data: {}} %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<h2>IngredientsController#create</h2>
|
||||
@@ -1 +0,0 @@
|
||||
<h2>IngredientsController#destroy</h2>
|
||||
Reference in New Issue
Block a user