--001636457f8e47ddd4046d1b1231
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

On Wed, Jun 24, 2009 at 12:57 PM, Roger Pack <rogerpack2005 / gmail.com>wrote:

> > 1.upto(pages.length) do |n|
> >   puts n
> > end
>
> ?
> --
> Posted via http://www.ruby-forum.com/.
>

I think his `pages' var is a single-element array, not an array of length
78, so this may give the desired result:

1.upto(pages[0].to_i) do |n|
  puts n
end


Alex

--001636457f8e47ddd4046d1b1231--