jquery - How to show Font Awesome icons on Rails select_tag -


i have dropdown in form_tag similar 1 below @icons = icon.all model:

<%= select_tag :icon_id, options_for_select(@icons.collect{ |u| [u.icon_code, u.id] }), class: "form-control" %> 

this dropdown font awesome icons unable render them on browser. possible without installing jquery plugin?

apparently so:

https://github.com/fortawesome/font-awesome/issues/996

"however, fontawesome unicode font based iconset, , possible include icon in option, or select list, referencing it's unicode character directly."

enter image description here

i'd check output , amend option , style tags accordingly


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -