Skip to content

Commit

Permalink
Merge pull request #585 from coderhs/patch-1
Browse files Browse the repository at this point in the history
[DOC] README: latest hash format convention in examples.
  • Loading branch information
mislav authored Mar 18, 2019
2 parents b6fb7b0 + 9c9d737 commit 2956393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ See [installation instructions][install] on the wiki for more info.

``` ruby
## perform a paginated query:
@posts = Post.paginate(:page => params[:page])
@posts = Post.paginate(page: params[:page])

# or, use an explicit "per page" limit:
Post.paginate(:page => params[:page], :per_page => 30)
Post.paginate(page: params[:page], per_page: 30)

## render page links in the view:
<%= will_paginate @posts %>
Expand Down

0 comments on commit 2956393

Please sign in to comment.