1
0

Added Meal edit/update

This commit is contained in:
cryptogopher
2020-04-20 22:56:05 +02:00
parent 6b5cb85b11
commit dfeb9af6db
8 changed files with 37 additions and 3 deletions

View File

@@ -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} %>