# File lib/merb_helpers/form_helpers.rb, line 396 def select_field(attrs = {}) collection = attrs.delete(:collection) option_attrs = { :prompt => attrs.delete(:prompt), :selected => attrs.delete(:selected), :include_blank => attrs.delete(:include_blank), :text_method => attrs.delete(:text_method), :value_method => attrs.delete(:value_method) } optional_label(attrs) { open_tag('select', attrs) + options_from_collection_for_select(collection, option_attrs) + "</select>"} end