[Solved] ActiveRecord joining nested associations on non default values
I found the answer. You need to define the foreign_key for the table so you can map it back. belongs_to :addresses, foreign_key: ‘state_abreviation’ 3 solved ActiveRecord joining nested associations on non default values