Has_many alias?

Is it possible to specify an alias with ‘has_many’? I
have an items table and a comments table, and instead
of it being ‘@item.comments’ I’d like it to be
@item.member_comments’. Possible in Rails?

thanks
csn


Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

Yes, the documentation for AR associations is quite extensive:

http://ar.rubyonrails.org/classes/ActiveRecord/Associations/
ClassMethods.html#M000007

has_many :member_comments, :class_name => ‘Comment’