create image form selection database

R

remco.zwaan

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
 
J

Jacob Basham

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

Jake
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,270
Messages
2,571,350
Members
48,036
Latest member
nickwillsonn

Latest Threads

Top