Skip to content

Commit

Permalink
Fix small typo in link_to_function doc
Browse files Browse the repository at this point in the history
  • Loading branch information
avakhov committed Nov 8, 2011
1 parent aff9e68 commit 979f3f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/javascript_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def button_to_function(name, function=nil, html_options={})
# If +html_options+ has an <tt>:onclick</tt>, that one is put before +function+. Once all
# the JavaScript is set, the helper appends "; return false;".
#
# The +href+ attribute of the tag is set to "#" unles +html_options+ has one.
# The +href+ attribute of the tag is set to "#" unless +html_options+ has one.
#
# link_to_function "Greeting", "alert('Hello world!')", :class => "nav_link"
# # => <a class="nav_link" href="#" onclick="alert('Hello world!'); return false;">Greeting</a>
Expand Down

0 comments on commit 979f3f8

Please sign in to comment.