summaryrefslogtreecommitdiff
path: root/app/controllers/tutorials_controller.rb
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-10-06 00:12:24 -0600
committermo k <mo@mokhan.ca>2012-10-06 00:12:24 -0600
commite8cba333235daa086a6751bb2cb8329eade4b4f5 (patch)
tree41c60aa2e23858fb0a30808f31e53ea4af2bb72a /app/controllers/tutorials_controller.rb
parent2444d211ca042182d0f0abdec802cedcb9d4bbb0 (diff)
fix bug where paging was not added when filtering tutorials by category.
Diffstat (limited to 'app/controllers/tutorials_controller.rb')
-rw-r--r--app/controllers/tutorials_controller.rb2
1 files changed, 1 insertions, 1 deletions
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