This would list numbers 5.0 to 7.0 in a drop select menu:
<%= f.select :height, (5..7).step(0.1) %>
How would I list 5.0 to 7.0 but also include an option of “Below 5.0” and “Above 7.0” as part of the menu?
I’m trying to create a dropdown/select menu for my users to select their height and wish to avoid doing it the long way.
Create a helper method to do the construction (somewhat based on PinnyM’s answer)