diff --git a/app/controllers/bets_controller.rb b/app/controllers/bets_controller.rb index 4211b51..90eaecb 100644 --- a/app/controllers/bets_controller.rb +++ b/app/controllers/bets_controller.rb @@ -1,6 +1,11 @@ class BetsController < ApplicationController + include Utilities::Paginator + helper Utilities::Paginator + def index - @bets = Bet.all + @bets = items_to_display(model: Bet, + items_per_page: 25, + current_page: params[:page]) end def show