Skip to main content
Ask A Question
Notifications
You’re not receiving notifications from this thread.
Subscribe

How do i track a course progress?

General • Asked by Jay Kapoor

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.


Can you post a detailed tutorial here on how do achieve this?


I don't have time to at the moment, but might be able to next week.


Or even if you can post the steps to achieve the same, that would be quite helpful as well.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 29,763+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.