foodlog/app/views/entries/_entry.json.jbuilder

3 lines
149 B
Ruby

json.extract! entry, :id, :meal_type, :calories, :proteins, :carbohydrates, :fats, :created_at, :updated_at
json.url entry_url(entry, format: :json)