On Oct 30, 7:05 pm, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> You're calling Array#rand (a private method Array defines), whereas
> you want to call Kernel#rand. Replace rand with Kernel.rand and you
> should be ok

That was it. Thanks for the tip. I didn't know Rails added in it's own
rand method into Array.

Farrel
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
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