Skip to content

Commit d8f68f9

Browse files
authored
Merge pull request rails#54690 from sajadtorkamani/patch-1
[ci skip] docs: fix punctuation
2 parents 8bedd7d + afcf331 commit d8f68f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/source/working_with_javascript_in_rails.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ added to the form that the `button_to` helper renders internally:
320320

321321
### Ajax Requests
322322

323-
When making non-GET requests from JavaScript the `X-CSRF-Token` header is required.
324-
Without this header requests won't be accepted by Rails.
323+
When making non-GET requests from JavaScript, the `X-CSRF-Token` header is required.
324+
Without this header, requests won't be accepted by Rails.
325325

326326
NOTE: This token is required by Rails to prevent Cross-Site Request Forgery (CSRF) attacks. Read more in the [security guide](security.html#cross-site-request-forgery-csrf).
327327

0 commit comments

Comments
 (0)