How do I make commentable comments available on the index page?
I've got the polymorphic comments working on the two show pages, but I want to show all my posts (and reports) along with their comments on the two respective index pages. I can't seem to get it.
Did you get it working? I wasn't around for the holidays for a bit.
I believe you can eager load the comments through the association in the index query and then just use the association to render them out on the index page. Is that what you ended up doing?
Nothing really. It's pretty straightforward. You just want to use remote: true
on the form and add the JS response to the action like you normally would. That's about it!