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?
On Nov 28, 2007 12:34 AM, Peter Marks <petertmarks@gmail.com> wrote:
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?
--
Posted via http://www.ruby-forum.com/\.
---
All truth passes through three stages. First, it is ridiculed. Second,
it is violently opposed. Third, it is accepted as being self-evident.
Schopenhauer (attr.)