A user chooses a ranking <%= f.select :ranking, Challenge::EMOTICONS %>
. ranking: integer
.
EMOTICONS = ['1.png', '2.png', '3.png', '4.png']
How can I show the user the emoticon images in place of the integers these emoticons represent in a dropdown menu?
4 = :] = 4.png # Smilely face strings are an example. I have better quality emoticon images I'd like to use
3 = :) = 3.png
2 = :( = 2.png
1 = :[ = 1.png