Displaying 1 result from an estimated 1 matches for "yediot".
Did you mean:
eediot
2006 Oct 17
3
action mailer, error Subject: Header must not be multiple
i want to send multiple emails:
#my Controller
def send_email
if params[:group_ids]
groups = Group.find(params[:group_ids]) # creates an array called
''groups'' that looks like : [{:id => 1, :title => ''yediot''}, {:id => 2,
:title => ''maariv''} ] --- [ 1, 2 ]
else
groups = []
end
names = []
emails = []
grouptitle = []
pages = []
groups.each { |group| # do a loop for {:id=> 1 ....} and then do
another loop {:id => 2 ... } until the end of t...