aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-09-09 15:58:12 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-09-09 15:58:12 +0000
commit73c70836515879f69a152535f3ab411acc3317b8 (patch)
tree849d2c9363ac135798bbd111f130226edbab932d /actionpack/lib
parentfa602bb86d31450c488d087b00c2d12198ab6ec8 (diff)
downloadrails-73c70836515879f69a152535f3ab411acc3317b8.tar.gz
rails-73c70836515879f69a152535f3ab411acc3317b8.tar.bz2
rails-73c70836515879f69a152535f3ab411acc3317b8.zip
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
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/form_tag_helper.rb6
1 files changed, 3 insertions, 3 deletions
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
# <tt>legend</tt> will become the fieldset's title (optional as per W3C).
#
# === Examples
- # <% fieldset_tag do %>
+ # <% field_set_tag do %>
# <p><%= text_field_tag 'name' %></p>
# <% end %>
# # => <fieldset><p><input id="name" name="name" type="text" /></p></fieldset>
#
- # <% fieldset_tag 'Your details' do %>
+ # <% field_set_tag 'Your details' do %>
# <p><%= text_field_tag 'name' %></p>
# <% end %>
# # => <fieldset><legend>Your details</legend><p><input id="name" name="name" type="text" /></p></fieldset>
- 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?