Yes, I also noticed that inspect was showing me strings.. it turns  
out I was passing $R strings and not integers..

Now I know better.

Thanks.
______________________________________________________________________
Alex Duffield ❖ Principal ❖ InControl Solutions . http:// 
www.incontrolsolutions.com



On 5-Jun-07, at 12:53 PM, Christophe Porteneuve wrote:

>
> Works for me on the Prototype site, with exactly your lines of code.
>
> However, where does that inspect() output come from?  It uses  
> *strings*
> instead of numbers as array members.  So I suspect it does not  
> match at
> all the lines of code you mentioned.
>
> My Firebug session on http://prototypejs.org says:
>
>>>> var start = 3; var end = 17; var days = $A($R(start, end));
>>>> console.log(days.inspect());
> [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
>
> -- 
> Christophe Porteneuve a.k.a. TDD
> "[They] did not know it was impossible, so they did it." --Mark Twain
> Email: [EMAIL PROTECTED]
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@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-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to