From 9a6a5c8a0c3f5639335010634131faf4d614058b Mon Sep 17 00:00:00 2001 From: YarekTenko Date: Mon, 27 Mar 2017 10:22:01 -0700 Subject: [PATCH] Add Paginator for Bet views -Added the paginator helper method to index.html.erb for Bet that renders the pagination panel with given parameters; -Added display_bets partial that renders all the bets in the bets instance variable; -Added bet partial for Bet model; --- app/views/bets/index.html.erb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/views/bets/index.html.erb b/app/views/bets/index.html.erb index b1ae90e..13f2bd7 100644 --- a/app/views/bets/index.html.erb +++ b/app/views/bets/index.html.erb @@ -9,5 +9,12 @@
<%= render 'display_bets', bets: @bets %>
+
+ +
<% end %>