Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # how and what do i relate scores back to? do i store a record with just half the score?
- # meaning when i save a score, do i save two records? one with the home score and the
- # other with the visitor score? or do i save one record with both? the second option
- # allows me to store a winner group_id so i don't have to calc it in the future. but
- # then building a group record becomes calc heavy.
- # i suppose in the two record idea i could store a 'is_winner' bool
- # thoughts?
- # results in /groups/13/
- map.resources :groups do |group|
- group.resources :scorings
- #does this then result in /groups/13/games ?
- group.resources :games
- end
- map.resources :games do |game|
- game.resources :players
- game.resources :scorings
- end
Add Comment
Please, Sign In to add comment