So I'm trying to do some ill-advised on-page ERB to calculate the value for a progress bar.
I have @total_completed_lessons
and @total_course_lessons
(which I know don't need @
signs, but I'm still troubleshooting...). These populate correctly.
However, when I try to divide them it comes out to zero:
@total_completed_lessons / @total_course_lessons
What is going on? How is math not math-ing?
Here's a screenshot to show how I'm doing things. (The 'd' is just to get the error screen to pop up so I can play with variables real-time.)