Posts by roberto cunha • 11 points
1 post
-
1
votes1
answer47
viewsA: Leave a specific option selected when using a select
- Realty.translated_realty_types.each_with_index do |k, v, index| - if index == 0 option selected value="#{v}" #{k} - else option value="#{v}" #{k}