public Method

InstanceTag.to_collection_select_tag(collection, value_method, text_method, options, html_options)

There's no documentation for this item.

Source Code

# File action_view/helpers/form_options_helper.rb, line 372
def to_collection_select_tag(collection, value_method, text_method, options, html_options)
  html_options = html_options.stringify_keys
  add_default_name_and_id(html_options)
  value = value(object)
  content_tag(
    "select", add_options(options_from_collection_for_select(collection, value_method, text_method, value), options, value), html_options
  )
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.