RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

How to has_many :though a has_many :through

Have two models that you’d like to join that are separated by two relationships? In this article Tim Harper (that’s me - I’m a third person!) describes a clever trick to achieve just that using named_scope finders, without losing the ability to chain additional named scopes.

Full Article

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in