Another try with a collect problem

Trying to figure out how to indicated ‘selected’ value in multi-valued

<%= select ‘counseling_note’, ‘fi_facility_id’, [[‘Select Facility’,
‘’ ] ] + @facilities.sort { |a,b| <=> }.collect { |fac|
[,] }, :selected => @fi_facility_id %>

but the :selected => doesn’t work

I can provide it either/both and but no matter what I
do, I can’t get the select list to display the currently selected

Any suggestions?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs