What's the use of has_one :through here (example from Rails guide)

Posted by piemesons on Stack Overflow See other posts from Stack Overflow or by piemesons
Published on 2010-05-26T10:25:18Z Indexed on 2010/05/26 10:41 UTC
Read the original article Hit count: 174

Filed under:
|

Example screenshot

Why they are using has_one:through here. We can do the same with has_one only. What's the need of making a new class. Can you give me any good example?

Here is the link for the original example from Rails guide

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about associations