+ 1

Database/ joining tables design help!

I’m doing an app where I have 3 models : recipes, ingredients, recipe_ingredients. I want to be able to look for all the recipes that will include the multiple chosen ingredients by the user Example: User looks for all the recipes with ingredients chicken coriander tomato. I will be using Ruby on Rails for my app, but I’m not sure how to achieve that with Ruby on Rails , does anyone have an idea? Thank you !

12th Feb 2022, 5:07 PM
Sirika Chhem
Sirika Chhem - avatar
0 Respuestas