Permalink
Browse files

Fix small typo in link_to_function doc

  • Loading branch information...
1 parent 23ca708 commit cd14cbd780fe4c1493feae389d818cc127b80e23 @avakhov avakhov committed with vijaydev Nov 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/javascript_helper.rb
@@ -85,7 +85,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>

0 comments on commit cd14cbd

Please sign in to comment.