name (randomly generated perhaps something fun with soccer?)
first (aka winner)
second
third
has_ended
score_firs
score_second
score_third
...
The league name and the current days left should be visible on the status board ( the purple thingie next to random button).
A rake task to end a league and create a new league needs to be implemented. This task can later be put in a cronjob so that new leagues can be generated on schedual. The rake task shall identify the winner, second, and third places their scores add them to the league as well as setting the has_ended to true.
A league summary pages should be created showing the last 10 leagues. When clicking a league it should expand and show the winners and their scores.
A league description should be created as an article on the index page linking to the league summary.
A league has:
The league name and the current days left should be visible on the status board ( the purple thingie next to random button).
A rake task to end a league and create a new league needs to be implemented. This task can later be put in a cronjob so that new leagues can be generated on schedual. The rake task shall identify the winner, second, and third places their scores add them to the league as well as setting the has_ended to true.
A league summary pages should be created showing the last 10 leagues. When clicking a league it should expand and show the winners and their scores.
A league description should be created as an article on the index page linking to the league summary.