[1,2,3,4,5,6,7,8 ][0..1] Look at documentation http://ruby-doc.org/core-1.9.3/Array.html#method-i-5B-5D. Generally good advice is to bookmark this <http://ruby-doc.org/core-1.9.3/> page.
2012/9/15 Maddy <[email protected]> > [1,2,3,4,5,6,7,8 ] -- 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 https://groups.google.com/groups/opt_out.

