diff options
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/tags_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index fe3380d..565cdd4 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb | |||
| @@ -14,6 +14,8 @@ class TagsController < ApplicationController | |||
| 14 | @tag = @tag ? @tag.name : params[:id] | 14 | @tag = @tag ? @tag.name : params[:id] |
| 15 | 15 | ||
| 16 | @page = Page.new | 16 | @page = Page.new |
| 17 | |||
| 18 | params[:page] = ( params[:page].is_a?(Fixnum) ? params[:page] : 1 ) | ||
| 17 | 19 | ||
| 18 | @pages = Page.heads.paginate( | 20 | @pages = Page.heads.paginate( |
| 19 | Page.find_options_for_find_tagged_with(@tag).merge( | 21 | Page.find_options_for_find_tagged_with(@tag).merge( |
