I am using this code for displaying data to the f.select tag:
<%= f.select :status, STATUSES, {}, :class => 'form-control' %>
The STATUSES hash contains following:
STATUSES = {"A" => 0,
"B" => 1,
"C" => 2,
"D" => 3,
"E" => 4}
How to display from the hash only values smaller than than 4 (so "A", "B", "C" and "D")?
Thank you in advance