Polymorphic Associations in Rails
When I first saw polymorphic associations in Ruby on Rails code, I was a little confused. However I have since realized that using this type of association make perfect sense in certain situations and Rails provides a elegant and easy way to model this. Normal Associations Most of our time,…