Skip to content

Commit 27952fb

Browse files
committed
Update README.md
- fix a small typo - restructure sentence about responding to X-PJAX headers
1 parent 3bccb4b commit 27952fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ $(document).pjax('a', '#pjax-container')
6060

6161
Now when someone in a pjax-compatible browser clicks "next page" the content of `#pjax-container` will be replaced with the body of `/page/2`.
6262

63-
Magic! Almost. You still need to configure you server to look for pjax requests then send back pjax-specific content.
63+
Magic! Almost. You still need to configure your server to look for pjax requests and send back pjax-specific content.
6464

65-
The pjax ajax request sends an `X-PJAX` header so in this example (and in most cases) we return a page without a layout to any requests with that header.
65+
The pjax ajax request sends an `X-PJAX` header so in this example (and in most cases) we want to return just the content of the page without any layout for any requests with that header.
6666

6767
Here's what it might look like in Rails:
6868

0 commit comments

Comments
 (0)