This commit is contained in:
albert
2013-02-23 13:27:18 -05:00
parent 3c1176b077
commit 096f1be22b
4 changed files with 11 additions and 12 deletions

View File

@@ -8,8 +8,7 @@ class TagsController < ApplicationController
end
def index
@search = Tag.search(params[:search])
@tags = @search.paginate(params[:page])
@tags = Tag.search(params[:search]).paginate(params[:page])
respond_with(@tags)
end