This commit is contained in:
albert
2011-06-25 16:33:30 -04:00
parent 1ad075c05a
commit 28d179708f
18 changed files with 113 additions and 23 deletions

View File

@@ -14,7 +14,7 @@ class ArtistsController < ApplicationController
def index
@search = Artist.search(params[:search])
@artists = @search.paginate(:page => params[:page])
@artists = @search.paginate(params[:page])
respond_with(@artists)
end

View File

@@ -39,7 +39,7 @@ class CommentsController < ApplicationController
private
def index_by_post
@posts = Post.tag_match(params[:tags]).commented_before(params[:before_date] || Time.now).limit(8)
@posts = Post.commented_before(Time.now).tag_match(params[:tags]).paginate(params[:page])
respond_with(@posts) do |format|
format.html {render :action => "index_by_post"}
end
@@ -47,7 +47,7 @@ private
def index_by_comment
@search = Comment.search(params[:search])
@comments = @search.paginate(:page => params[:page])
@comments = @search.paginate(params[:page])
respond_with(@comments) do |format|
format.html {render :action => "index_by_comment"}
end

View File

@@ -52,7 +52,7 @@ private
end
def index_by_post
@posts = Post.tag_match(params[:tags]).noted_before(params[:before_date] || Time.now).limit(8)
@posts = Post.tag_match(params[:tags]).noted_before(params[:before_date] || Time.now).paginate(params[:page])
respond_with(@posts) do |format|
format.html {render :action => "index_by_post"}
end
@@ -60,7 +60,7 @@ private
def index_by_note
@search = Note.search(params[:search])
@notes = @search.paginate(:page => params[:page])
@notes = @search.paginate(params[:page])
respond_with(@notes) do |format|
format.html {render :action => "index_by_note"}
end

View File

@@ -9,7 +9,7 @@ class TagAliasesController < ApplicationController
def index
@search = TagAlias.search(params[:search])
@tag_aliases = @search.paginate(:page => params[:page])
@tag_aliases = @search.paginate(params[:page])
respond_with(@tag_aliases)
end

View File

@@ -9,7 +9,7 @@ class TagImplicationsController < ApplicationController
def index
@search = TagImplication.search(params[:search])
@tag_implications = @search.paginate(:page => params[:page])
@tag_implications = @search.paginate(params[:page])
respond_with(@tag_implicationes)
end

View File

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

View File

@@ -16,7 +16,7 @@ class UsersController < ApplicationController
def index
@search = User.search(params[:search])
@users = @search.paginate(:page => params[:page])
@users = @search.paginate(params[:page])
respond_with(@users)
end