I\'m trying to learn how to use polymorphic associations in my Rails 5 app. I recently asked this question, but I edited it so many times to show all the things I was tryin
The answer is here: https://rubyplus.com/articles/3901-Polymorphic-Association-in-Rails-5
The trick seems to be in the load_commentable method shown in the article. It's too complicated for me to make sense of it, but it works.
Feeling very grateful for how much help there is from people happy to share what they know. Thank you Taryn & Bala.