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 Mar 28, 2017
1 parent acea506 commit 9a6a5c8
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 @@ -9,5 +9,12 @@
<div class="p-2">
<%= render 'display_bets', bets: @bets %>
</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 9a6a5c8

Please sign in to comment.