项目搜索页码问题

This commit is contained in:
ouyangxuhua 2015-08-13 15:38:14 +08:00
parent feb9125085
commit b1c8fdd904
1 changed files with 0 additions and 1 deletions

View File

@ -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