add basic pagination on wow_mounts page

This commit is contained in:
Etienne Ischer
2021-04-29 10:27:01 +02:00
parent d6afeb8771
commit 7d582ebd91
7 changed files with 198 additions and 20 deletions

View File

@@ -1,3 +1,4 @@
class ProtectedController < ApplicationController
before_action :authenticate_user!
include Pagy::Backend
end

View File

@@ -1,6 +1,6 @@
class WowMountsController < ProtectedController
def index
@wow_mounts = WowMount.all
@pagy, @wow_mounts = pagy(WowMount.all, items: 12)
end
def show