Forum: Ruby create image form selection database

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
28be3be213eeed3f66e0a20f1e20c7ac?d=identicon&s=25 Remco Swoany (zwaan123)
on 2007-11-04 13:39
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
below metrics

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

Grtz...remco
909ab9f704ce61d20e0567da8dc4d487?d=identicon&s=25 Jacob Basham (Guest)
on 2007-11-07 08:45
(Received via mailing list)
A cheap hack, make a simple 1px wide image, and set the image width
based on the level.

Jake
This topic is locked and can not be replied to.