We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9e0776 commit 143b36eCopy full SHA for 143b36e
README.md
@@ -1,6 +1,6 @@
1
# api-pagination [](https://travis-ci.org/davidcelis/api-pagination)
2
3
-Put pagination info for your API in Link headers, not the response body.
+Put pagination info in a Link header, not the response body.
4
5
## Installation
6
@@ -17,6 +17,7 @@ In your controllers:
17
18
```ruby
19
class MoviesController < ApplicationController
20
+ # Uses the @movies and @actors variables set below
21
after_filter only: [:index] { paginate(:movies) }
22
after_filter only: [:cast] { paginate(:actors) }
23
0 commit comments