mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci skip] Fix doc for javascript_helper
This commit is contained in:
parent
3c60da761b
commit
9505a21f42
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