Bootstrap progress bar

Anyone know how to set the progress bar value in the controller and pass
it to
the view?
I tried the following:

Controller/show: @progress_bar_num = “25%”

View/show:

aria-valuemin="0" aria-valuemax="100" style="width: <%= @p_bar_num%>;"> <%=@p_bar_num%>

Not even close…

Thanks!

Dave

OK, got it. Have to set the width of .bar through javascript / jQuery.