Hi All,
I’ve been trying to figure out what’s wrong here for a little over a
day and figured i’d reach out to the ROR list.
A pastie explains the code a bit better than directly in email:
http://pastie.org/private/mvu0zr1xm18bsk6nfbyama
Basically i have an Artist, and he has many Songs through a join model
called Releases. An artist can be “featured” on a song… take for
example most rap songs where there is more than 1 artist on the
track.
My goal here is to be able to set an artist as the featured on a song
when creating the song… something like this:
Artist.first.featured_songs.create!(:title => “blah”). Rails allows
me to do that with the current association setup (in the pastie above)
BUT for some reason the release.featured attribute is always set to
nil.
Anyway ideas?
Thank you!