mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Updated documentation for block helpers in javascript_helper.rb
This commit is contained in:
@@ -71,7 +71,7 @@ module ActionView
|
||||
#
|
||||
# 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.
|
||||
# <% javascript_tag :defer => 'defer' do -%>
|
||||
# <%= javascript_tag :defer => 'defer' do -%>
|
||||
# alert('All is good')
|
||||
# <% end -%>
|
||||
def javascript_tag(content_or_options_with_block = nil, html_options = {}, &block)
|
||||
|
||||
Reference in New Issue
Block a user