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:
commit
57dba02817
1 changed files with 7 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue