John,
I think you''ll have to find a JavaScript control that does this. Here
is one (look at "combobox with icons")
http://www.dhtmlx.com/docs/products/dhtmlxCombo/index.shtml
Then either embed it directly inside your view or via a JavaScriptHelper
Arshak
John Lane wrote:> Hi,
>
> Is it possible to use form.select in such a way that the selection
> values are images rather than text ?
>
> I currently use an array like so
>
> <%= form.select :card_type,
> [ [ "display_name_1", :value_1 ],
> [ "display_name_2", :value_2 ] ],
> { :prompt => "Please Select..."} %>
>
> Instead of showing the text "display_name_1", etc, I would like
to
> display images.
>
> Thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---