From 58ebd15abb1e6184654282c0b3a67abe848b3f87 Mon Sep 17 00:00:00 2001 From: Akshay Vishnoi Date: Fri, 13 Mar 2015 02:19:04 +0530 Subject: [CI SKIP] Correct output of options_for_select --- actionview/lib/action_view/helpers/form_options_helper.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'actionview/lib/action_view') diff --git a/actionview/lib/action_view/helpers/form_options_helper.rb b/actionview/lib/action_view/helpers/form_options_helper.rb index bbfbf482a4..a44e5cca87 100644 --- a/actionview/lib/action_view/helpers/form_options_helper.rb +++ b/actionview/lib/action_view/helpers/form_options_helper.rb @@ -302,17 +302,17 @@ module ActionView # # => # # options_for_select([ "VISA", "MasterCard" ], "MasterCard") - # # => - # # => + # # => + # # => # # options_for_select({ "Basic" => "$20", "Plus" => "$40" }, "$40") # # => # # => # # options_for_select([ "VISA", "MasterCard", "Discover" ], ["VISA", "Discover"]) - # # => - # # => - # # => + # # => + # # => + # # => # # You can optionally provide HTML attributes as the last element of the array. # -- cgit v1.2.3