From c7d8661118b6d007b03c131fb8946e393c7f0891 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 8 May 2011 08:58:48 -0600 Subject: Fixed documentation of select tag; options with html need to pass through html_safe https://github.com/rails/rails/issues/447 https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6759-api-document-incorrect --- actionpack/lib/action_view/helpers/form_tag_helper.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index 9e0f8f32b7..65a98fb27a 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -82,22 +82,22 @@ module ActionView # select_tag "people", options_from_collection_for_select(@people, "id", "name") # # # - # select_tag "people", "" + # select_tag "people", "".html_safe # # => # - # select_tag "count", "" + # select_tag "count", "".html_safe # # => # - # select_tag "colors", "", :multiple => true + # select_tag "colors", "".html_safe, :multiple => true # # => # - # select_tag "locations", "" + # select_tag "locations", "".html_safe # # => # - # select_tag "access", "", :multiple => true, :class => 'form_input' + # select_tag "access", "".html_safe, :multiple => true, :class => 'form_input' # # => # @@ -107,7 +107,7 @@ module ActionView # select_tag "people", options_from_collection_for_select(@people, "id", "name"), :prompt => "Select something" # # => # - # select_tag "destination", "", :disabled => true + # select_tag "destination", "".html_safe, :disabled => true # # => def select_tag(name, option_tags = nil, options = {}) -- cgit v1.2.3