private Method

FormOptionsHelper.option_value_selected?(value, selected)

There's no documentation for this item.

Source Code

# File action_view/helpers/form_options_helper.rb, line 313
def option_value_selected?(value, selected)
  if selected.respond_to?(:include?) && !selected.is_a?(String)
    selected.include? value
  else
    value == selected
  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.