-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add recipe description and instructions
- Loading branch information
Kyle Zarazan
committed
Nov 21, 2024
1 parent
982bcdc
commit feb454a
Showing
5 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
json.extract! recipe, :id, :name | ||
json.extract! recipe, :id, :name, :description, :instructions, :created_at, :updated_at | ||
|
||
json.ingredients recipe.ingredients do |ingredient| | ||
json.extract! ingredient, :id, :food_id, :measurement | ||
json.extract! ingredient, :id, :food_id, :measurement, :created_at, :updated_at | ||
json.food_name ingredient.food.name | ||
end |
4 changes: 3 additions & 1 deletion
4
db/migrate/20241111053351_create_recipies.rb → db/migrate/20241111053351_create_recipes.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.