Hi All,
I’m working on an application whereby each user will have a dashboard
that will show topics and the associated results for those topics
based on a quiz taken by the user.
The 3 models in question are:
User
has_many :results
Topic
has_many :results
has_many :users, :through => :results
Result
belongs_to :user
belongs_to :topic
On my dashboard view, I have the topics set out but am completely
stuck with placing the current user’s (latest) result for that topic
next to it.
I’m populating a @topics instance variable to iterate over to show the
topics.
I’d really appreciate a nudge in the correct direction.
Thanks
Robin