changes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user