aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2017-08-27 22:42:20 +0530
committerGitHub <noreply@github.com>2017-08-27 22:42:20 +0530
commit62647ce417f2e28d0a40368857b209e69208fdaf (patch)
tree482c99e392017d21ce378683332f383f4782379b /guides
parenta1ec8b5b512f2cdf7ed9fd1d9f512bd49087891a (diff)
parent1243ccc371c8eee0b718fc5c779aa082ba93ff83 (diff)
downloadrails-62647ce417f2e28d0a40368857b209e69208fdaf.tar.gz
rails-62647ce417f2e28d0a40368857b209e69208fdaf.tar.bz2
rails-62647ce417f2e28d0a40368857b209e69208fdaf.zip
Merge pull request #30435 from yhirano55/fix_grammer_in_guide_for_javascript
Fix grammar in JavaScript in Rails [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/working_with_javascript_in_rails.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/guides/source/working_with_javascript_in_rails.md b/guides/source/working_with_javascript_in_rails.md
index 6bce73ccad..27cef2bd27 100644
--- a/guides/source/working_with_javascript_in_rails.md
+++ b/guides/source/working_with_javascript_in_rails.md
@@ -24,11 +24,11 @@ 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
-'Go,' the browser (your 'client') makes a request to the server. It parses the
+'Go', the browser (your 'client') makes a request to the server. It parses the
response, then fetches all associated assets, like JavaScript files,
stylesheets and images. It then assembles the page. If you click a link, it
does the same process: fetch the page, fetch the assets, put it all together,
-show you the results. This is called the 'request response cycle.'
+show you the results. This is called the 'request response cycle'.
JavaScript can also make requests to the server, and parse the response. It
also has the ability to update information on the page. Combining these two
@@ -57,7 +57,7 @@ will show you how Rails can help you write websites in this way, but it's
all built on top of this fairly simple technique.
Unobtrusive JavaScript
--------------------------------------
+----------------------
Rails uses a technique called "Unobtrusive JavaScript" to handle attaching
JavaScript to the DOM. This is generally considered to be a best-practice
@@ -139,7 +139,7 @@ JavaScript) in this style, and you can expect that many libraries will also
follow this pattern.
Built-in Helpers
-----------------------
+----------------
### Remote elements
@@ -372,9 +372,9 @@ is also useful for manipulating form data before serialization. The
`ajax:beforeSend` event is also useful for adding custom request headers.
If you stop the `ajax:aborted:file` event, the default behavior of allowing the
-browser to submit the form via normal means (i.e. non-AJAX submission) will be
+browser to submit the form via normal means (i.e. non-Ajax submission) will be
canceled and the form will not be submitted at all. This is useful for
-implementing your own AJAX file upload workaround.
+implementing your own Ajax file upload workaround.
### Rails-ujs event handlers