1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #15619 from aditya-kapoor/fix-js-doc

[ci skip] Fix doc for javascript_helper
This commit is contained in:
Rafael Mendonça França 2014-06-10 18:19:25 -03:00
commit 57dba02817

View file

@ -47,7 +47,13 @@ module ActionView
# tag.
#
# javascript_tag "alert('All is good')", defer: 'defer'
# # => <script defer="defer">alert('All is good')</script>
#
# Returns:
# <script defer="defer">
# //<![CDATA[
# alert('All is good')
# //]]>
# </script>
#
# Instead of passing the content as an argument, you can also use a block
# in which case, you pass your +html_options+ as the first parameter.