aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/url_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-23 12:31:05 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-23 12:31:05 +0000
commitd768ff1146b4784a59a38ff7cf979b7382ea57db (patch)
treeb1de50ea25fe0b15438908d399fe609fe3b0b2ff /actionpack/lib/action_view/helpers/url_helper.rb
parentc699a3e98596df2d41d7cda77ae28f7c534a80fe (diff)
downloadrails-d768ff1146b4784a59a38ff7cf979b7382ea57db.tar.gz
rails-d768ff1146b4784a59a38ff7cf979b7382ea57db.tar.bz2
rails-d768ff1146b4784a59a38ff7cf979b7382ea57db.zip
Documentation fix #698
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@756 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/url_helper.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb
index 313895c1be..951760b3ba 100644
--- a/actionpack/lib/action_view/helpers/url_helper.rb
+++ b/actionpack/lib/action_view/helpers/url_helper.rb
@@ -100,11 +100,12 @@ module ActionView
# link unless +name+ is specified. Additional HTML options, such as class or id, can be passed in the <tt>html_options</tt> hash.
#
# You can also make it difficult for spiders to harvest email address by obfuscating them.
- # Examples:
- # * mail_to "me@domain.com", "My email", :encode => "javascript"
- # => <script type="text/javascript" language="javascript">eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%22%3e%4d%79%20%65%6d%61%69%6c%3c%2f%61%3e%27%29%3b'))</script>
- # * mail_to "me@domain.com", "My email", :encode => "hex"
- # => <a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d">My email</a>
+ # Examples:
+ # mail_to "me@domain.com", "My email", :encode => "javascript" # =>
+ # <script type="text/javascript" language="javascript">eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%22%3e%4d%79%20%65%6d%61%69%6c%3c%2f%61%3e%27%29%3b'))</script>
+ #
+ # mail_to "me@domain.com", "My email", :encode => "hex" # =>
+ # <a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d">My email</a>
def mail_to(email_address, name = nil, html_options = {})
encode = html_options[:encode]
html_options.delete(:encode)