From 3ba5e39b545a6917fb9a75abb484e0c017653917 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 9 Oct 2006 00:15:28 +0000 Subject: Docfix (closes #6356) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/javascript_helper.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb index 3f0a462092..3a5aaa6412 100644 --- a/actionpack/lib/action_view/helpers/javascript_helper.rb +++ b/actionpack/lib/action_view/helpers/javascript_helper.rb @@ -153,7 +153,15 @@ module ActionView end # Returns a JavaScript tag with the +content+ inside. Example: - # javascript_tag "alert('All is good')" # => + # javascript_tag "alert('All is good')" + # + # Returns: + # + # def javascript_tag(content) content_tag("script", javascript_cdata_section(content), :type => "text/javascript") end -- cgit v1.2.3