Created
April 6, 2020 01:33
-
-
Save rpdecks/263b3c56b6be531c18d8e92ed091c79b to your computer and use it in GitHub Desktop.
artist_name= for Collaborating Objects Lab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def artist_name=(name) | |
self.artist = Artist.find_or_create_by_name(name) | |
artist.add_song(self) #why not self.add_song(self)?? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment