On 30 Oct 2008, at 16:22, Farrel wrote: > > > As you can see if I execute the code myself it seems to work. If I > copy that same code into irb it works perfectly. > 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
Fred > Any ideas? > > 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 [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 -~----------~----~----~----~------~----~------~--~---

