Skip to content

Commit 143b36e

Browse files
committed
Update README for clarity
Signed-off-by: David Celis <[email protected]>
1 parent b9e0776 commit 143b36e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# api-pagination [![Build Status](https://travis-ci.org/davidcelis/api-pagination.png)](https://travis-ci.org/davidcelis/api-pagination)
22

3-
Put pagination info for your API in Link headers, not the response body.
3+
Put pagination info in a Link header, not the response body.
44

55
## Installation
66

@@ -17,6 +17,7 @@ In your controllers:
1717

1818
```ruby
1919
class MoviesController < ApplicationController
20+
# Uses the @movies and @actors variables set below
2021
after_filter only: [:index] { paginate(:movies) }
2122
after_filter only: [:cast] { paginate(:actors) }
2223

0 commit comments

Comments
 (0)