Tectractys.com - Cool Tech & Articles, Interesting Gadgets, News & Opinion, Home of the Market Globe©! Tectractys.com - Tech & Gadgets Review Site

Tectractys.com
Tagged Topic Viewer
Topics: ruby




Combining has_many :through with polymorphic associations in ActiveRecord - Sihui Huang

You read the Rails guide and thought you have understood the has_many :through association and polymorphic associations. Your app models needed both. Unfortunately, the guide didn't explain how to combine these two together. Wondering why on earth the guide would leave out the most important yet complicated part, you had no choice but try to put them together yourself hoping you would get it right.

Apr 12, 2019 by Tectract
Software Articles



Go to Top