diff --git a/actionview/lib/action_view/helpers/javascript_helper.rb b/actionview/lib/action_view/helpers/javascript_helper.rb index e475d5b018e58171da0b2210458b778211eedddb..629c447f3f92c13fdbdf1f751f55c0fb8f532116 100644 --- a/actionview/lib/action_view/helpers/javascript_helper.rb +++ b/actionview/lib/action_view/helpers/javascript_helper.rb @@ -47,7 +47,13 @@ def escape_javascript(javascript) # tag. # # javascript_tag "alert('All is good')", defer: 'defer' - # # => + # + # Returns: + # # # 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.