diff options
| author | mo k <mo@mokhan.ca> | 2013-01-31 06:58:27 -0700 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2013-01-31 06:58:27 -0700 |
| commit | 6d0e208aade0aa6fa13702b7961084dfbb39f179 (patch) | |
| tree | fd5219469d396e7a29aad70bb3ee9fb327f6ff16 /app/controllers/tutorials_controller.rb | |
| parent | 69790f4d90071324a6eeffbec2451dd944a0db0d (diff) | |
remove tag filtering from tutorials controller.
Diffstat (limited to 'app/controllers/tutorials_controller.rb')
| -rw-r--r-- | app/controllers/tutorials_controller.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/tutorials_controller.rb b/app/controllers/tutorials_controller.rb index 208ae460..839ea11b 100644 --- a/app/controllers/tutorials_controller.rb +++ b/app/controllers/tutorials_controller.rb @@ -2,11 +2,7 @@ class TutorialsController < ApplicationController before_filter :authenticate_user!, :except => [:show, :index] def index - if params[:tags] - @tutorials = Tutorial.tagged_with([params[:tags]]).page(params[:page]).per(15) - else - @tutorials = Tutorial.page(params[:page]).per(15) - end + @tutorials = Tutorial.page(params[:page]).per(15) end def show |
