private Method

InstanceTag.add_options(option_tags, options, value = nil)

There's no documentation for this item.

Source Code

# File action_view/helpers/form_options_helper.rb, line 406
def add_options(option_tags, options, value = nil)
  if options[:include_blank]
    option_tags = "<option value=\"\">#{options[:include_blank] if options[:include_blank].kind_of?(String)}</option>\n" + option_tags
  end
  if value.blank? && options[:prompt]
    ("<option value=\"\">#{options[:prompt].kind_of?(String) ? options[:prompt] : 'Please select'}</option>\n") + option_tags
  else
    option_tags
  end
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.