I have two models:
Question:
has_many: answers
Answer:
belongs_to: question
How can I select all questions
ordering based on "last activity" which would be the question.created_at or answer.created_at
Examples:
If an old question just got a new answer, it would be the first one on the list.
If a new question just got posted, it would be the first one on the list.