options_for_select(container, selected = nil)
Instance Public methods
Accepts a container (hash, array, enumerable, your type) and returns a
string of option tags. Given a container where the elements respond to
first and last (such as a two-element array), the âlastsâ serve as option
values and the âfirstsâ as option text. Hashes are turned into this form
automatically, so the keys become âfirstsâ and values become lasts. If
selected is specified, the matching âlastâ or element wi