aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Meehan <adam.meehan@gmail.com>2008-06-26 08:03:00 +1000
committerAdam Meehan <adam.meehan@gmail.com>2008-06-26 08:03:00 +1000
commit9f25ffdb3d8160127c07836fa566d1e2e5a52792 (patch)
treebaf44d1bfe91b2d2df88ae7105392f37f26de6a9
parent01571c0fd73a31f78411d6cad6484ddd82ec4778 (diff)
downloadrails-9f25ffdb3d8160127c07836fa566d1e2e5a52792.tar.gz
rails-9f25ffdb3d8160127c07836fa566d1e2e5a52792.tar.bz2
rails-9f25ffdb3d8160127c07836fa566d1e2e5a52792.zip
example output of content_tag block form was incorrectly wrapped in <p></p> tags
-rw-r--r--actionpack/lib/action_view/helpers/tag_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/tag_helper.rb b/actionpack/lib/action_view/helpers/tag_helper.rb
index aeafd3906d..14e4f01a13 100644
--- a/actionpack/lib/action_view/helpers/tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/tag_helper.rb
@@ -64,7 +64,7 @@ module ActionView
# <% content_tag :div, :class => "strong" do -%>
# Hello world!
# <% end -%>
- # # => <div class="strong"><p>Hello world!</p></div>
+ # # => <div class="strong">Hello world!</div>
def content_tag(name, content_or_options_with_block = nil, options = nil, escape = true, &block)
if block_given?
options = content_or_options_with_block if content_or_options_with_block.is_a?(Hash)