Conversation
Notices
-
Sean Tilley (dsh@deadsuperhero.com)'s status on Friday, 11-Aug-2017 16:11:18 EDT Sean Tilley
I think I'm up against a polymorphic association in #Rails, and Jesus Christ, is it ever daunting.
Trying to fetch all answers made by a user for a particular question. Fetching the answers works, fetching the questions works. But I can't seem to do this in a way that question.query and answer.body are displayed together in a coherent fashion.
What I need is to display a question title with a link to the question, then display the body of the answer.
Here's the gnarly display that I'm working with. Answers are a nested resource of Questions: https://github.com/DeadSuperHero/askwise/blob/departments/app/views/users/show.html.erb
So far, I'm just faking it by displaying the question body instead of the answer body.