From 9c9d73778b9d24971fa3b51f1f758720f5cc255e Mon Sep 17 00:00:00 2001 From: Harisankar P S Date: Thu, 14 Feb 2019 12:54:07 +0530 Subject: [PATCH] [DOC] README: latest hash format convention in examples. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3387b2c0d..73bb72653 100644 --- a/README.md +++ b/README.md @@ -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 %>