add order to projects admin page
This commit is contained in:
parent
51f48392ab
commit
bb3fc1e04e
|
@ -4,7 +4,7 @@ class Admin::ProjectsController < AdminController
|
||||||
def index
|
def index
|
||||||
@admin_projects = Project.scoped
|
@admin_projects = Project.scoped
|
||||||
@admin_projects = @admin_projects.search(params[:name]) if params[:name].present?
|
@admin_projects = @admin_projects.search(params[:name]) if params[:name].present?
|
||||||
@admin_projects = @admin_projects.page(params[:page]).per(20)
|
@admin_projects = @admin_projects.order("name ASC").page(params[:page]).per(20)
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
|
Loading…
Reference in a new issue