From e8cba333235daa086a6751bb2cb8329eade4b4f5 Mon Sep 17 00:00:00 2001 From: mo k Date: Sat, 6 Oct 2012 00:12:24 -0600 Subject: fix bug where paging was not added when filtering tutorials by category. --- app/controllers/tutorials_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/tutorials_controller.rb') diff --git a/app/controllers/tutorials_controller.rb b/app/controllers/tutorials_controller.rb index 377827c2..208ae460 100644 --- a/app/controllers/tutorials_controller.rb +++ b/app/controllers/tutorials_controller.rb @@ -3,7 +3,7 @@ class TutorialsController < ApplicationController def index if params[:tags] - @tutorials = Tutorial.tagged_with([params[:tags]]) + @tutorials = Tutorial.tagged_with([params[:tags]]).page(params[:page]).per(15) else @tutorials = Tutorial.page(params[:page]).per(15) end -- cgit v1.2.3