aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-05-19 19:36:48 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-05-19 19:36:48 +0530
commit1551de3c04bf872423683926f92916abe2a49ad1 (patch)
tree156daec67fc0305f7723ddc8f157523b50b1d758 /actionpack/lib/action_view/helpers
parent71a83a9cfde71293abcebd98e874f317aa83160e (diff)
parent4adfd8e68db88e08ea39c05a14a3375651f058d3 (diff)
downloadrails-1551de3c04bf872423683926f92916abe2a49ad1.tar.gz
rails-1551de3c04bf872423683926f92916abe2a49ad1.tar.bz2
rails-1551de3c04bf872423683926f92916abe2a49ad1.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r--actionpack/lib/action_view/helpers/text_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb
index 54a65ce5f8..8cd7cf0052 100644
--- a/actionpack/lib/action_view/helpers/text_helper.rb
+++ b/actionpack/lib/action_view/helpers/text_helper.rb
@@ -208,13 +208,16 @@ module ActionView
#
# ==== Options
# * <tt>:sanitize</tt> - If +false+, does not sanitize +text+.
- # * <tt>:wrapper_tag</tt> - String representing the tag wrapper, defaults to <tt>"p"</tt>
+ # * <tt>:wrapper_tag</tt> - String representing the wrapper tag, defaults to <tt>"p"</tt>
#
# ==== Examples
# my_text = "Here is some basic text...\n...with a line break."
#
# simple_format(my_text)
# # => "<p>Here is some basic text...\n<br />...with a line break.</p>"
+ #
+ # simple_format(my_text, {}, :wrapper_tag => "div")
+ # # => "<div>Here is some basic text...\n<br />...with a line break.</div>"
#
# more_text = "We want to put a paragraph...\n\n...right there."
#