Topic: Array range

How can I do something like this..

@results[@init..@end]

?

Re: Array range

Done.!
I was trying to do something like this

format.json { render json: @results[@init..@end] }

I just put it outside the format.json

@results = @results[@init..@end]

...
format.json { render json: @results }