1
0

Sending Food id from autocomplete on Meal create

This commit is contained in:
cryptogopher
2020-04-16 19:09:24 +02:00
parent e78803e474
commit eb939a1be5
2 changed files with 19 additions and 10 deletions

View File

@@ -1 +1 @@
<%= raw @foods.map { |f| {id: f.id, label: f.name, value: f.name} }.to_json %>
<%= raw @foods.map { |f| {label: f.name, value: f.id} }.to_json %>