Displaying 1 result from an estimated 1 matches for "featured_songs".
Did you mean:
featured_song
2011 Aug 12
1
Getting nil value when setting an on Join model via a has_many :through relationship
...hrough 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!
--
You received this message because you are subscribed to the Google Gr...