--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Returns a string of option tags that have been compiled by iterating over the <tt>collection</tt> and assigning the the result of a call to the <tt>value_method</tt> as the option value and the <tt>text_method</tt> as the option text. If <tt>selected</tt> is specified, the element returning a match on <tt>value_method</tt> will get the selected option tag.
- !ruby/struct:SM::Flow::P 
  body: "Example (call, result). Imagine a loop iterating over each <tt>person</tt> in <tt>@project.people</tt> to generate an input tag:"
- !ruby/struct:SM::Flow::VERB 
  body: "  options_from_collection_for_select(@project.people, &quot;id&quot;, &quot;name&quot;)\n    &lt;option value=&quot;#{person.id}&quot;&gt;#{person.name}&lt;/option&gt;\n"
- !ruby/struct:SM::Flow::P 
  body: "NOTE: Only the option tags are returned, you have to wrap this call in a regular HTML select tag."
full_name: ActionView::Helpers::FormOptionsHelper#options_from_collection_for_select
is_singleton: false
name: options_from_collection_for_select
params: (collection, value_method, text_method, selected = nil)
visibility: public
