mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Fix photos admin page to 16 per page.
This commit is contained in:
parent
a551562d28
commit
2fb596c802
@ -2,7 +2,7 @@ class Admin::PhotosController < Admin::AdminController
|
||||
before_filter :get_categories
|
||||
|
||||
def index
|
||||
@photos = Photo.paginate(:page => params[:page])
|
||||
@photos = Photo.paginate(page: params[:page], per_page: 16)
|
||||
end
|
||||
|
||||
def new
|
||||
|
||||
Loading…
Reference in New Issue
Block a user