mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix small typo in link_to_function doc
This commit is contained in:
parent
aff9e68cb5
commit
979f3f894b
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ module ActionView
|
|||
# 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>
|
||||
|
|
Loading…
Reference in a new issue