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%>;"> <%[email protected]_bar_num%>

Not even close…

Thanks!

Dave

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs