P
P
Pianista2016-06-25 11:42:50
ORM
Pianista, 2016-06-25 11:42:50

How to list comment authors in a Rails application?

There is a standard rails blog. Accordingly, there are posts in it and comments on the posts.
How to display a list of comment authors on a post page and the corresponding number of author comments on a post?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2016-06-25
@Pianista

Using JOIN, GROUP, COUNT in a query.
Worth reading
guides.rubyonrails.org/active_record_querying.html...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question