Answer the question
In order to leave comments, you need to log in
How to count objects in Active Record without using id?
Greetings!
Answer the question
In order to leave comments, you need to log in
You can add a field in which the attribute will be saved - filled in or not. And then calculate the ratio of shaded to the total.
Upd: You can use any storage where you will store the number of questions for a specific user (as I understand, for this task you only need to know the number - save it), which have already been answered - a database, a session, what else is there can it be used in rails? And again, find the ratio of the number of answers to the number of all questions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question