Posts Tagged With ‘associations’

  1. has_many :through association

    Scenario: Users should be able to select their kills which can be later shown on their profile’s account. There are two ways to do so. The has_many_and_belongs_to and the has_many :trough associations. In the following example I will use the second one so we can see the whole structure of creating such association. There are […]

  2. Introduced to Polymorphic Association

    “Any future changes will be well structured and clean.” The Ruby on Rails project I am working on will employ a Polymorphic association. I created a Title Posts model and a Photo Posts model which will be under the Posts model. Using a polymorphic association is a great association of what I am trying to do […]