Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Paginator to Bet #61

Open
wants to merge 6 commits into
base: view_bets_and_pagination_commits
Choose a base branch
from

Conversation

ghost
Copy link

@ghost ghost commented Mar 27, 2017

Pivotal: https://www.pivotaltracker.com/story/show/140512959
Dependent on #60
-Added Paginator to Bet controller;
-Added Paginator to views for Bet model.

@ghost ghost force-pushed the view_bets_and_pagination_commits branch from 405cde9 to 5db032c Compare March 27, 2017 23:46
@ghost ghost changed the base branch from view_bets_and_pagination_commits to display_all_bets March 28, 2017 20:23
@ghost ghost changed the base branch from display_all_bets to view_bets_and_pagination_commits March 29, 2017 17:34
@ghost ghost changed the base branch from view_bets_and_pagination_commits to display_all_bets March 29, 2017 17:35
@ghost ghost changed the base branch from display_all_bets to master March 30, 2017 16:13
Allow long strings for "context"
Adding pagination module that will have to be included
in autoload_paths.
-Paginator module is responsible for calculating and rendering a
pagination bar based on the passed parameters.
-Added rspec for Paginator.
@ghost ghost changed the base branch from master to view_bets_and_pagination_commits April 5, 2017 23:14
@ghost
Copy link
Author

ghost commented Apr 5, 2017

Rebased on top of #60

@jacquesporveau
Copy link
Member

when visiting http://localhost:3000/bets I get a 500

-Add _blocks.html.erb view that renders page blocks;
-Add _paginator.html.erb view that renders the pagination panel for the
current page of a given Model.
@ghost ghost force-pushed the view_bets_and_pagination_commits branch from 5a5299c to ed870d5 Compare April 7, 2017 22:45
-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;
@ghost
Copy link
Author

ghost commented Apr 7, 2017

@jacquesporveau Should be working now, thank you.

@ghost ghost force-pushed the view_bets_and_pagination_commits branch 2 times, most recently from 23b4f2a to a9f2557 Compare April 11, 2017 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants