Skip to content

Commit

Permalink
Add Paginator for Bet views
Browse files Browse the repository at this point in the history
-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;
  • Loading branch information
LeonTenko committed Apr 7, 2017
1 parent 916beb8 commit 5d32877
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/views/bets/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,12 @@
</div>
</div>
</div>
<div class="mt-auto p-2">
<div class="row footer">
<div class="col col-md-12">
<%= paginator %>
</div>
</div>
</div>
</div>
<% end %>

0 comments on commit 5d32877

Please sign in to comment.