aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/working_with_javascript.md
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-10-21 19:19:47 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-10-21 19:19:47 +0530
commit676ee7887e3689257811c8b00bd699f89a838910 (patch)
tree178bfb5d325f4f996387e16356afeb1a206d0751 /guides/source/working_with_javascript.md
parentf938019da210ea2bfccabdf61424852e8006c741 (diff)
downloadrails-676ee7887e3689257811c8b00bd699f89a838910.tar.gz
rails-676ee7887e3689257811c8b00bd699f89a838910.tar.bz2
rails-676ee7887e3689257811c8b00bd699f89a838910.zip
fix a couple of typos in the js guide [ci skip]
Diffstat (limited to 'guides/source/working_with_javascript.md')
-rw-r--r--guides/source/working_with_javascript.md8
1 files changed, 3 insertions, 5 deletions
diff --git a/guides/source/working_with_javascript.md b/guides/source/working_with_javascript.md
index 1fabb9b99e..51673d3464 100644
--- a/guides/source/working_with_javascript.md
+++ b/guides/source/working_with_javascript.md
@@ -16,7 +16,7 @@ ease! We will cover the following topics:
An introduction to AJAX
------------------------
-In order to understand AJAX, you must first understand what a web broswer does
+In order to understand AJAX, you must first understand what a web browser does
normally.
When you type `http://localhost:3000` into your browser's address bar and hit
@@ -146,7 +146,7 @@ attributes, and attaches appropriate handlers.
### form_for
[`form_for`](http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-form_for)
-is a helper that assists with writing `<form>`s. `form_for` takes a `:remote`
+is a helper that assists with writing forms. `form_for` takes a `:remote`
option. It works like this:
```
@@ -199,7 +199,7 @@ details.
### link_to
[`link_to`](http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to)
-is a helper that assits with generating links. It has a `:remote` option you
+is a helper that assists with generating links. It has a `:remote` option you
can use like this:
```
@@ -227,8 +227,6 @@ $(document).ready ->
alert "fib of #{count} is: #{data}."
```
-Easy!
-
### button_to
[`button_to`](http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-button_to) is a helper that helps you create buttons. It has a `:remote` option that you can call like this: