diff options
| author | mo k <mo@mokhan.ca> | 2012-10-06 00:12:24 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-10-06 00:12:24 -0600 |
| commit | e8cba333235daa086a6751bb2cb8329eade4b4f5 (patch) | |
| tree | 41c60aa2e23858fb0a30808f31e53ea4af2bb72a /app/controllers/tutorials_controller.rb | |
| parent | 2444d211ca042182d0f0abdec802cedcb9d4bbb0 (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.rb | 2 |
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 |
