Pagination for domains

This commit is contained in:
Martin Lensment 2014-09-05 12:50:46 +03:00
parent 8531e50474
commit 11319b6f36
6 changed files with 29 additions and 2 deletions

View file

@ -1,5 +1,5 @@
class Admin::DomainsController < ApplicationController
def index
@domains = Domain.all
@domains = Domain.order(:name).page(params[:page])
end
end