it seems that u have 2 goals in mind
a) recipes
b) ingredients

since a dish consists of ingredients b and b itself of many b u should look
into simple treebased appraoch:

ingredient:
-id
-parent_id
-name
-uom (=unit of measure)
-qty (=quantity)






On Mon, Nov 14, 2011 at 3:14 PM, Colin Law <[email protected]> wrote:

> On 14 November 2011 17:51, Norbert Melzer <[email protected]>
> wrote:
> >
> > I hope I will have some time this week to think about this and to
> > understand it all.
> > Neither english nor ruby are my native languages and im still
> > learning. Especially all about databases drives me crazy in regular.
> > It took me about 3 hours this morning to get a "simple" has_many up
> > and running. Migrating a thousand times or so back and forth.
> >
> > I never know where to put the belongs_to and where the has_many, or
> > how to set up the migrations, where to use singular and where plural.
>
> I suggest that you work through some of the Rails Guides, start with
> Getting Started and Active Record Associations.  Also the one on
> debugging will come in handy.  Then work right through a good tutorial
> such as railstutorial.org, which is free to use online.  Then you
> should have a better grasp of the fundamentals of Rails.
>
> Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to