$ rails g model User
belongs_to
has_one
Player, instantiates it, and assigns it to a global player variable.Player class contains four methods:
constructor()playPause()skipTo()setVolume()constructor() method sets initial values for the currentlyPlaying, playState, volume, and soundObject properties.
currentlyPlaying is set to the first item in album.songs.playState is "stopped".volume is set to the number 80.