提交 676ee788 编写于 作者: V Vijay Dev

fix a couple of typos in the js guide [ci skip]

上级 f938019d
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册