method
option_text_and_value
option_text_and_value(option)
private
Hide source
# File actionpack/lib/action_view/helpers/form_options_helper.rb, line 488 def option_text_and_value(option) # Options are [text, value] pairs or strings used for both. if !option.is_a?(String) and option.respond_to?(:first) and option.respond_to?(:last) [option.first, option.last] else [option, option] end end