Fix associations between team, player, play models so that we can implement Rails 'shortcuts' to grab plays associated with a player, players associated with a team, etc. Also may have to rename the Playergame model to PlayerGame (playergame.rb to player_game.rb, etc.).
Fix associations between team, player, play models so that we can implement Rails 'shortcuts' to grab plays associated with a player, players associated with a team, etc. Also may have to rename the Playergame model to PlayerGame (
playergame.rb
toplayer_game.rb
, etc.).Follow the convention set in the Rails app here: https://github.com/albertlyu/rails-workshop/tree/master/store.