项目搜索页码问题
This commit is contained in:
parent
feb9125085
commit
b1c8fdd904
|
@ -86,7 +86,6 @@ class ProjectsController < ApplicationController
|
||||||
@project_pages = Project.project_entities.visible.like(params[:name]).page(params[:page]).per(10)
|
@project_pages = Project.project_entities.visible.like(params[:name]).page(params[:page]).per(10)
|
||||||
else
|
else
|
||||||
@project_pages = Project.project_entities.visible.page(params[:page] ).per(10)
|
@project_pages = Project.project_entities.visible.page(params[:page] ).per(10)
|
||||||
@project_pages = Project.project_entities.visible.page(params[:page] ).per(10)
|
|
||||||
end
|
end
|
||||||
@projects = @project_pages.order("created_on desc")
|
@projects = @project_pages.order("created_on desc")
|
||||||
@limit = 10#per_page_option
|
@limit = 10#per_page_option
|
||||||
|
|
Loading…
Reference in New Issue