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.
Or even if you can post the steps to achieve the same, that would be quite helpful as well.
Join 29,763+ developers who get early access to new screencasts, articles, guides, updates, and more.