aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAlexey Vakhov <vakhov@gmail.com>2011-11-08 18:01:19 +0400
committerAlexey Vakhov <vakhov@gmail.com>2011-11-08 18:01:19 +0400
commit979f3f894bf1034d4e9ee5ab9e285713f63c2824 (patch)
treea9f429ba0fe8ac7517c542b7c58f2d8dc8404fcd /actionpack
parentaff9e68cb5996c95bc5c7304d996343ea2382d3b (diff)
downloadrails-979f3f894bf1034d4e9ee5ab9e285713f63c2824.tar.gz
rails-979f3f894bf1034d4e9ee5ab9e285713f63c2824.tar.bz2
rails-979f3f894bf1034d4e9ee5ab9e285713f63c2824.zip
Fix small typo in link_to_function doc
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/javascript_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb
index 1adcd716f8..842f4c23a3 100644
--- a/actionpack/lib/action_view/helpers/javascript_helper.rb
+++ b/actionpack/lib/action_view/helpers/javascript_helper.rb
@@ -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>