Forum: Ruby on Rails acts_as_tree help

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8b22ad683842861ba91f68d5d32954db?d=identicon&s=25 Jason Norris (Guest)
on 2007-01-22 16: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?

Thanks
Jason
This topic is locked and can not be replied to.