One quick question:
Lets assume I have an User (Devise) & Item Model. The current_user can create and mark his items. If he does, the value of
# How can I count the number of items marked?
# In addition, I don't know if it is the right solution to use joins. Correct me if I am wrong.
I suppose you have associations between users and items ? If yes, you can simply: