has_many :through

geek by association

Finding unassociated objects


over 11 years ago by josh on has_many :through.
Say you have two models with a one-to-many relationship (using belongs_to and has_many). For example, a manager has many employees. # Manager has_many...

Validate all your records in one fell swoop


over 11 years ago by Josh Susser on has_many :through.
I'm working on an app now that has to import a big SQL file directly into MySQL to populate the tables with data exported from an older codebase. I don...

Validate all your records in one fell swoop


over 11 years ago by josh on has_many :through.
I'm working on an app now that has to import a big SQL file directly into MySQL to populate the tables with data exported from an older codebase. I don...

New on edge: Magic join model creation


over 11 years ago by Josh Susser on has_many :through.
Mark the date: August 18, 2006 is the day that has_many :through finally beat has_and_belongs_to_many into submission. Yesterday, Rails core member Jeremy...

New on edge: Magic join model creation


over 11 years ago by josh on has_many :through.
Mark the date: August 18, 2006 is the day that has_many :through finally beat has_and_belongs_to_many into submission. Yesterday, Rails core member Jeremy...

How dynamic finders work


over 11 years ago by Josh Susser on has_many :through.
I got into a discussion on IRC last week talking about how ActiveRecord's magic find_by_whatever methods work. It's an interesting topic (at least to geeks...

How dynamic finders work


over 11 years ago by josh on has_many :through.
I got into a discussion on IRC last week talking about how ActiveRecord's magic find_by_whatever methods work. It's an interesting topic (at least to geeks...

Site upgrade


over 11 years ago by Josh Susser on has_many :through.
I finally went and upgraded this blog to Typo 4. I'd been putting it off because I thought I could avoid it entirely. I still plan eventually to run this...

Site upgrade


over 11 years ago by josh on has_many :through.
I finally went and upgraded this blog to Typo 4. I'd been putting it off because I thought I could avoid it entirely. I still plan eventually to run this...

The Caboose Rails Documentation Project


over 11 years ago by josh on has_many :through.
Those crazy kids in the #caboose channel decided to raise $5000 to fund (bounty or salary?) someone with professional tech writing skills to show some love...