Hi

Just interested in anybody's opinion on the following:

I have one model class called Diagram, that contains a number of Node
classes (ie 1-many relationship).  One of the Node classes must be the
start node.

Which would be better:

1.  Attribute in Diagram class called StartNode containing id of the
start Node.

2. Boolean attribute in Node class called StartNode? and set to true if
its the start node.

Would be interested in knowing the 'Rails' way of doing this :)

Cheers

Jason

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 https://groups.google.com/groups/opt_out.


Reply via email to