has_many :through

geek by association

Twisting the rope: looking for code examples


over 12 years ago by josh on has_many :through.
In just about six weeks I'll be giving my talk at RubyConf 2006 called "More than enough rope to hang yourself". The talk will address the pitfalls of overzealous...

Finding unassociated objects


over 12 years ago by Josh Susser 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...

Finding unassociated objects


over 12 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 12 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 12 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 12 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 12 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 12 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 12 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 12 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...