From 73c70836515879f69a152535f3ab411acc3317b8 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 9 Sep 2007 15:58:12 +0000 Subject: Rename fieldset_tag to field_set_tag to follow the conventions from text_area and text_field [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7423 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/form_tag_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index 39e508f433..d8e8f2005e 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -369,16 +369,16 @@ module ActionView # legend will become the fieldset's title (optional as per W3C). # # === Examples - # <% fieldset_tag do %> + # <% field_set_tag do %> #

<%= text_field_tag 'name' %>

# <% end %> # # =>

# - # <% fieldset_tag 'Your details' do %> + # <% field_set_tag 'Your details' do %> #

<%= text_field_tag 'name' %>

# <% end %> # # =>
Your details

- def fieldset_tag(legend = nil, &block) + def field_set_tag(legend = nil, &block) content = capture(&block) concat(tag(:fieldset, {}, true), block.binding) concat(content_tag(:legend, legend), block.binding) unless legend.blank? -- cgit v1.2.3