Forum: Ruby on Rails acts_as_tree help

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jason N. (Guest)
on 2007-01-22 17:34
(Received via mailing list)
What I'm working with is Events. Some events are multi-day, so to track
that, I want to use acts_as_tree.

The problem is this: for pretty much any attribute, I want to return the
attribute as normal, except when it's nil.Then I want to return the
parent's attribute. I've tried experimenting with alias_method. I can
upgrade to rails 1.2 to use alias_attribute if that's what I need to do.

Can anyone point me in the right direction on this?

This topic is locked and can not be replied to.