A model should only talk to its immediate association. According to the Law of
Demeter, you shouldn’t talk to the association’s property or association’s
association.
Here we talk about Rails delegate approach.
BAD SMELL
class Profile < ActiveRecord::Base
belongs_to :user
end
<%= @profile.user.address %>
<%= @profile.user.