aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Moss <me@jonathanmoss.me>2017-04-16 22:24:38 -0400
committerJon Moss <me@jonathanmoss.me>2017-04-16 22:24:38 -0400
commit908afa7d18fe54c7b7b6d4fcd48eaeb29362a432 (patch)
treef8a82573956d7dd90618e023648bdb20f35606ff
parente1e3be7c02acb0facbf81a97bbfe6d1a6e9ca598 (diff)
downloadrails-908afa7d18fe54c7b7b6d4fcd48eaeb29362a432.tar.gz
rails-908afa7d18fe54c7b7b6d4fcd48eaeb29362a432.tar.bz2
rails-908afa7d18fe54c7b7b6d4fcd48eaeb29362a432.zip
Small grammar fixes
[ci skip]
-rw-r--r--guides/source/working_with_javascript_in_rails.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/working_with_javascript_in_rails.md b/guides/source/working_with_javascript_in_rails.md
index cbaf9100f7..dacd7b71e8 100644
--- a/guides/source/working_with_javascript_in_rails.md
+++ b/guides/source/working_with_javascript_in_rails.md
@@ -338,7 +338,7 @@ this:
end
```
-Notice the format.js in the `respond_to` block; that allows the controller to
+Notice the `format.js` in the `respond_to` block: that allows the controller to
respond to your Ajax request. You then have a corresponding
`app/views/users/create.js.erb` view file that generates the actual JavaScript
code that will be sent and executed on the client side.
@@ -355,7 +355,7 @@ which uses Ajax to speed up page rendering in most applications.
### How Turbolinks Works
-Turbolinks attaches a click handler to all `<a>` on the page. If your browser
+Turbolinks attaches a click handler to all `<a>` tags on the page. If your browser
supports
[PushState](https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history#The_pushState%28%29_method),
Turbolinks will make an Ajax request for the page, parse the response, and