Apidock_header
  • Welcome
  • Register
  • Projects
  • Help
  • About
  • Blog
Use OpenID
  • Rspec_icon_16RSpec
  • Rails_icon_16Ruby on Rails
  • Ruby_icon_16Ruby
method

option_value_selected?

Importance_0
v7.2.3 - Show latest stable - 0 notes - Class: ActionView::Helpers::FormOptionsHelper
  • 1.0.0
  • 1.1.6
  • 1.2.6
  • 2.0.3 (0)
  • 2.1.0 (0)
  • 2.2.1 (0)
  • 2.3.8 (0)
  • 3.0.0 (0)
  • 3.0.9 (0)
  • 3.1.0 (0)
  • 3.2.1 (0)
  • 3.2.8 (0)
  • 3.2.13 (0)
  • 4.0.2 (0)
  • 4.1.8 (0)
  • 4.2.1 (0)
  • 4.2.7 (0)
  • 4.2.9 (0)
  • 5.0.0.1 (0)
  • 5.1.7 (0)
  • 5.2.3 (0)
  • 6.0.0 (0)
  • 6.1.3.1 (0)
  • 6.1.7.7 (0)
  • 7.0.0 (0)
  • 7.1.3.2 (0)
  • 7.1.3.4 (0)
  • 7.2.3 (0)
  • 8.0.0 (0)
  • 8.1.1 (0)
  • What's this?

Related methods

  • Instance methods (24)
  • Importance_3_sm collection_checkboxes (>= v8.0.0)
  • Importance_3_sm collection_check_boxes
  • Importance_3_sm collection_radio_buttons
  • Importance_5_sm collection_select
  • Importance_1_sm country_options_for_select (<= v2.1.0)
  • Importance_2_sm country_select (<= v2.1.0)
  • Importance_0_sm extract_selected_and_disabled Icon_private_sm
  • Importance_0_sm extract_values_from_collection Icon_private_sm
  • Importance_3_sm grouped_collection_select
  • Importance_3_sm grouped_options_for_select
  • Importance_3_sm option_groups_from_collecti...
  • Importance_0_sm option_html_attributes Icon_private_sm
  • Importance_5_sm options_for_select
  • Importance_5_sm options_from_collection_for...
  • Importance_0_sm option_text_and_value Icon_private_sm
  • Importance_0_sm option_value_selected? Icon_private_sm
  • Importance_0_sm prompt_text Icon_private_sm
  • Importance_0_sm public_or_deprecated_send Icon_private_sm (<= v6.0.0)
  • Importance_5_sm select
  • Importance_2_sm time_zone_options_for_select
  • Importance_3_sm time_zone_select
  • Importance_0_sm value_for_collection Icon_private_sm
  • Importance_1_sm weekday_options_for_select
  • Importance_1_sm weekday_select

Icon_private_sm = private
Icon_protected_sm = protected

option_value_selected?(value, selected) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 808
        def option_value_selected?(value, selected)
          Array(selected).include? value
        end
Register or log in to add new notes.
  • Welcome
  • Register
  • Projects
  • Help
  • About
  • Blog


APIdock release: IRON STEVE (1.4)
If you have any comments, ideas or feedback, feel free to contact us at

Go to Nodeta blog APIdock copyright Nodeta Oy 2008-2025