sorry this is my first post here, and my first real rails project, so I hope I'm not bothering you with too easy questions;
I've decided to develop an application to manage my receipes (I'm from Italy and - yes stereotypes and clichè - I love cooking).
I'm still planning the database (so "drawing" the models), but I'm stuck:
I was planning to have mainly these two objects:
and here comes my problem: I want every receips to have a link to the ingredients. How can i dynamically add or remove :ingredient_id strings to the Receipe object?
Moreover I would like to add an amount for every ingredient for every recipe. How can I do that?
Sorry, I don't know if I expressed clearly enough...
Thank you for your help