# Slider control \> based on values of table

**URL:** <https://www.ruby-forum.com/t/slider-control-based-on-values-of-table/138149>\
**Category:** Rails\
**Created:** [May 20, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/slider-control-based-on-values-of-table/138149 "2008-05-20T17:00:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![remco123](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/779978/32.png) [@remco123](https://www.ruby-forum.com/u/remco123)\
**Post date:** [May 20, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/slider-control-based-on-values-of-table/138149/1 "2008-05-20T17:00:35Z")

</div>

Hi this is my table structure:

create\_table “items”, :force =\> true do |t|  
t.string “name”, :limit =\> 30  
t.integer “quantity”, :default =\> 0, :null =\> false  
t.integer “price”, :default =\> 0, :null =\> false  
end

I have a simple table in my index view shows the values of this table.

def index  
@items = Item.find(:all)  
end

Now i want to use a slider control ([script.aculo.us](http://script.aculo.us)?) based on the  
values of columnname’s \> “quantity” and “price”.

has someone examples of a some rails code of links ??

swoany
