json.extract! @log, :id, :date, :rating, :notes json.recipe do json.partial! 'recipes/recipe', recipe: @log.recipe end