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

Updated documentation for block helpers in javascript_helper.rb

This commit is contained in:
Jeroen van Dijk 2010-03-12 13:24:17 +01:00
parent 363616572d
commit a098720719

View file

@ -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)