I currently have a model called Album which has_many :songs. I would like a user to be able to move songs from one album to another. Messing around in the Rails console, I have found that
song.album_id=2
song.save
works fine, but, I am having doubts that this is the right way to apply it in a real application. Is there a proper way to do this?
1 Answer