From b341778485e4bcb586ff3d21df9af2617daf3e60 Mon Sep 17 00:00:00 2001 From: Kuldeep Aggarwal Date: Fri, 13 Mar 2015 08:41:36 +0530 Subject: [PATCH] [ci skip] correct output of select --- .../helpers/form_options_helper.rb | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/actionview/lib/action_view/helpers/form_options_helper.rb b/actionview/lib/action_view/helpers/form_options_helper.rb index a44e5cca87..8a5928477f 100644 --- a/actionview/lib/action_view/helpers/form_options_helper.rb +++ b/actionview/lib/action_view/helpers/form_options_helper.rb @@ -18,10 +18,10 @@ module ActionView # # could become: # - # + # + # + # # # # Another common case is a select tag for a belongs_to-associated object. @@ -32,7 +32,7 @@ module ActionView # # could become: # - # # # # @@ -45,7 +45,7 @@ module ActionView # # could become: # - # # # # @@ -71,11 +71,11 @@ module ActionView # # could become: # - # + # + # + # + # # # # When used with the collection_select helper, :disabled can also be a Proc that identifies those options that should be disabled. @@ -83,7 +83,7 @@ module ActionView # collection_select(:post, :category_id, Category.all, :id, :name, {disabled: lambda{|category| category.archived? }}) # # If the categories "2008 stuff" and "Christmas" return true when the method archived? is called, this would return: - # # # # @@ -109,7 +109,7 @@ module ActionView # # would become: # - # # # # @@ -192,7 +192,7 @@ module ActionView # collection_select(:post, :author_id, Author.all, :id, :name_with_initial, prompt: true) # # If @post.author_id is already 1, this would return: - # # # # @@ -243,7 +243,7 @@ module ActionView # # Possible output: # - # # # #