Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update the readme for mismatching response keys

  • Loading branch information...
commit 985b8d46e76c06923d6cb5ee9af876365837119b 1 parent bea3e41
@dewski dewski authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
8 README.md
@@ -104,9 +104,9 @@ Lastly, create `app/views/users/index.json_builder` which could look something l
```ruby
count @users.count
-current_page @users.current_page
+page @users.current_page
per_page @users.per_page
-num_pages @users.num_pages
+pages_count @users.num_pages
results @users do |user|
id user.id
name user.name
@@ -124,10 +124,10 @@ You will get something like:
```json
{
- "total": 10,
+ "count": 10,
"page": 1,
"per_page": 2,
- "total_pages": 5,
+ "pages_count": 5,
"results": [
{
"id": 1,
Please sign in to comment.
Something went wrong with that request. Please try again.