On Thu, 2009-07-16 at 22:53 +0200, Älphä Blüë wrote:

> Hi Bill, the issue was that the variables being passed to the class 
> method from rake were assigned to var=0 so that's why I was getting that 
> error.  I had forgotten to check my rake file and once I went back and 
> retraced my steps I realized I hadn't passed the type of variable to the 
> class method (array in this case).

Yes. As Phillip pointed out, "teamvar is an integer... not array."
Sorry I didn't have time, and still don't, to be more help.  Reckoned
you'd figure it out with just a hint.  At any rate, David has offered
advice and my recommendation is to listen carefully.  You can't do
better.  When he says "I would tend..." he's saying in the nicest way
possible "that's not how we do it in Ruby."  Other than getters in
models, you won't find many examples of 'outbound' parameters in Ruby
methods.

Best regards,
Bill

P.S.  When he says "Another thing to think about...", it often means he
already _is_ thinking about it and if prompted with a question like 'how
would that work?' very often says more.


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to