Andrew Skegg <andrewskegg@...> writes: Sorry,this is slightly wrong:
> song = Song.first > licences_for_song = song.licences.active It should be: licences_for_song = song.licences.activated And this can be optimised if you do not need all the licenses: > licensed_stations.include? radio_station To: license = song.licences.activated.where(:radio_station = radio_station) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

