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''
On 15/11/2005, at 1:49 PM, CSN wrote:
> 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
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails