Displaying 1 result from an estimated 1 matches for "maariv".
Did you mean:
maar
2006 Oct 17
3
action mailer, error Subject: Header must not be multiple
...o 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 the array, and then
continue to the next line # group.use...