In my RoR app I would like to change a drop down list, which dispays a
list of colors selected from the database. Instead I would like to
create a radio button for each color. The user is allowed to check one
color and this will be saved back into the database as the color for
this user.
I don’t know how to do this. Currently it looks like this:
<%= select(:user, :color_id, Color.find(:all).collect {|c| [ c.name,
c.id ] }, { :include_blank => false })%>