How do i track a course progress?
Hey Chris,
I have been trying to build a onemonth like sample website.
How do i track the user's progress for each of his course.
Just like onemonth all these courses have multiple episodes, and i would like to display the progress bar indicating the progress made by a user.
So we use public_activity
to track the views and completions of each step. You can complete a step a few times, so to calculate the progress, you count the number of unique steps completed by the user and the total number of published steps in the course and divide those. That's really all there is to it! The public_activity
gem makes creating the activity records pretty easy so than all you'll have to do is grab a count after that.