P
Peter Marks
I am trying to assemble an array of month names called
"names_of_months_paid":
0 first_month_paid = client.first_month_paid
1 names_of_months_paid = []
2 number_of_months_paid.times do
3 names_of_months_paid << first_month_paid.strftime("%B")
4 first_month_paid >> (1)
5 end
For each payment ("number_of_months_paid"), I need to store the name of
the month, then store the name of the next month starting from
"first_month_paid". I seem to be having trouble advancing the month of
"first_month_paid" on line 4 as I am left with an array of first month
names. How might I get this to work?
"names_of_months_paid":
0 first_month_paid = client.first_month_paid
1 names_of_months_paid = []
2 number_of_months_paid.times do
3 names_of_months_paid << first_month_paid.strftime("%B")
4 first_month_paid >> (1)
5 end
For each payment ("number_of_months_paid"), I need to store the name of
the month, then store the name of the next month starting from
"first_month_paid". I seem to be having trouble advancing the month of
"first_month_paid" on line 4 as I am left with an array of first month
names. How might I get this to work?