Thanks for the suggestion, Dan. I've used acts_as_list a bit in
another project...I was under the impression that it's primary purpose
was to add ordering functionality to an object.
I guess the bottom line is that, when I add (or edit) one of my List
objects, I need to be able to specify that it is a child of either a
Transmission object (effectively making it a top-level List) or of
another List object (effectively making it a child List). It would
never be a child of both...only one or the other.
They way I'm thinking of doing it is having two columns in my table:
transmission_id and parent_id. If the List object I'm adding "belongs"
to a Transmission, then the transmission_id field would be populated
and the parent_id field would be null. If the List object is a child
list of a parent List object, then the parent_id would have a value
and the transmission_id field would be null.
Doesn't seem like the cleanest solution, but I think it may work. Is
there a better way to do this?
Thanks!
On Jun 28, 6:45 am, Dan Manges <
daniel.man...@gmail.com> wrote:
> Take a look at the acts_as_list plugin - I think it will solve your
> problem with the List model.
>
> -Dan Manges
>