-1
I am generating a select passing some options as shown in the code below
select name="listing_search[realty_types][]"
- Realty.translated_realty_types.each do |k, v|
option value="#{v}" #{k}
How do I leave the second option selected from the list selected? I know SELECTED exists, but I’m not sure how to use it.
Thanks, I changed some things and it was!
– Rodrigo Barreto