From dec2765522eac8b96ffcee023c7baf0fffa6fac4 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Wed, 25 Jun 2014 17:35:13 +0200 Subject: [PATCH] Fix pagination on profile page --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 0cee018..8679803 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -10,7 +10,7 @@ class UsersController < ApplicationController def show user = User.real_for_username!(params[:username]) - render locals: { page: UserPagePresenter.build(user, current_user) } + render locals: { page: UserPagePresenter.build(user, current_user, params[:page]) } end def create