# Create image form selection database

**URL:** <https://www.ruby-forum.com/t/create-image-form-selection-database/119180>\
**Category:** Ruby\
**Created:** [November 4, 2007, 1:39pm UTC](https://www.ruby-forum.com/t/create-image-form-selection-database/119180 "2007-11-04T13:39:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [November 4, 2007, 1:39pm UTC](https://www.ruby-forum.com/t/create-image-form-selection-database/119180/1 "2007-11-04T13:39:21Z")

</div>

Hi,

I have a table degree wich is related through a join table with the user  
table.  
The degree has 6 options

Level 1  
Level 2  
Level 3  
ect.

Now i want to show the levels in a imagebar…so for example if the user  
has all the 6 levels the bar is totaly green.

Example check \> [http://www.workingwithrails.com/person/9725-remco-zwaan](http://www.workingwithrails.com/person/9725-remco-zwaan)  
below metrics

Can anyone put me in the right direction…gems…tutorials…

Grtz…remco

---

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [November 7, 2007, 8:45am UTC](https://www.ruby-forum.com/t/create-image-form-selection-database/119180/2 "2007-11-07T08:45:52Z")

</div>

A cheap hack, make a simple 1px wide image, and set the image width  
based on the level.

Jake
