Forum: Ruby on Rails Re: Need :through to work as has many rather than HABTM.

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.
Scott R. (Guest)
on 2006-03-22 05:59
(Received via mailing list)
ChrisT <removed_email_address@domain.invalid> wrote:
>I'd like to have
> something like :through to model a has_many relationship rather than a
> HABTM relationship
[...]
> Users have many Models (and Models belong to Users)
> Models have many Pieces (and Pieces belong to Models)
[...]
> In a perfect world you would be able to use something like :through to
> get user.pieces...
> ...but I know we don't live in one of those.

Yep, it just got checked in a few days ago:

   http://dev.rubyonrails.org/changeset/3964

Scott R.
http://scottraymond.net/
This topic is locked and can not be replied to.