Added Meal edit/update
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<%= labelled_form_for @food,
|
||||
url: food_path(@food, view: view),
|
||||
method: :patch, remote: true,
|
||||
html: {id: 'food-edit-form', name: 'food-edit-form'} do |f| %>
|
||||
html: {id: 'edit-food-form', name: 'edit-food-form'} do |f| %>
|
||||
|
||||
<%= render partial: 'foods/form', locals: {f: f} %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user