parsley/app/views/calculator/ingredient_search.json.jbuilder

6 lines
72 B
Ruby

json.array! @foods do |i|
json.extract! i, :id, :name, :density
end