If I have an array:
[Red, Blue, Pick, Orange]
The array has been sorted and I'd to show what position they are inside the array:
- Red
- Blue
- Pink
- Orange
I'd display the colours to the user like this but cannot work out how to display showing that red is number 1, blue is number 2 and 3 is pink in my sorted list.
<% @colours.each do |colour| %>
<%= colour %>
<% end %>
<ol><%= colour %></ol>(assuming this is HTML)?Redis a constant. What does it equal?