Skip to content

Commit

Permalink
Update how-to: Correct to require headers for API (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisselda authored and ddnexus committed Sep 9, 2019
1 parent 75a9e3c commit 739f032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/how-to.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ This page contains the practical tips and examples to get the job done with Pagy
1. require the [headers extra](extras/headers.md) by uncommenting it in your [pagy.rb](https://github.com/ddnexus/pagy/blob/master/lib/config/pagy.rb) file:

```ruby
require 'pagy/extras/metadata'
require 'pagy/extras/headers'
```

2. add the pagination headers to your responses:
Expand Down

0 comments on commit 739f032

Please sign in to comment.