Frederick Cheung wrote: > On 1 Dec 2008, at 16:58, Dave Smith wrote: > >> recipient, subject, message to the emailer model. >> >> However I created a mailings scaffold which holds each of the email >> addresses, and names for the people on the mailinglist (with a one to >> many relationship). >> >> So now I am stuck as I dont know how to create a button that sends an >> email to all the mailings in a mailinglist with the >> mailinglist_template >> associated with that mailinglist!! >> > Doesn't that just mean that recipients = mailinglist.people.collect {| > person| person.email_address} > ? > Fred
yeah well in my mailinglist controller I have put @mailinglist_mailings = @mailinglist.mailings.collect so essentially very similar -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---