Slider.js in ruby on rails

Is anyone using slider.js from I don’t understand how
to integrate it into a form in rails. I want to do something like
adjust (slide) age from 16-100.
Thank You,

I would approach this with a hidden field in your form and if you wana
it very easy, then use the helper from rails svn repository

Wow, thanks for pointing me to that helper. I just can’t seem to get
it to slide. Do I need a method in the controller to respond to the
Thank You,

Here is my rhtml:
<%= slider_stylesheet %>
<%= slider_field :mate, :generosity, :range => 1…10 %>

Here is the code it produces:

div.slider { width: 150px; height: 5px; margin-top:5px; margin-bottom:5px; background: #ddd; position: relative; } div.slider div { position:absolute; width:8px; height:15px; margin-top:-5px; background: #999; border:1px outset white; cursor:move; }


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