I have a Review model which allows for a '1-10' rating system on products. In my form view, here is how I did the field to spit out a dropdown of 1-10...
<%= f.select :rating, options_for_select((0..10).to_a, @review.rating) %>
Works great, but the team is now wanting to have .5 decimal numbers for the rating system, so something can be rated 7.5, 8.0, 8.5, etc.
However, that has me stumped...how can I alter the above code and iterate through a set of numbers and increment it by .5 each time in Ruby? (Note: Yes, I have already converted my rating column from an integer to a float.)