From 9505a21f425e37e54426120849e3ca2a494cc7b0 Mon Sep 17 00:00:00 2001 From: Aditya Kapoor Date: Wed, 11 Jun 2014 01:29:17 +0530 Subject: [ci skip] Fix doc for javascript_helper --- actionview/lib/action_view/helpers/javascript_helper.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'actionview') diff --git a/actionview/lib/action_view/helpers/javascript_helper.rb b/actionview/lib/action_view/helpers/javascript_helper.rb index e475d5b018..629c447f3f 100644 --- a/actionview/lib/action_view/helpers/javascript_helper.rb +++ b/actionview/lib/action_view/helpers/javascript_helper.rb @@ -47,7 +47,13 @@ module ActionView # 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. -- cgit v1.2.3