< :the previous in number
^ :the list in numerical order
> :the next in number
P :the previous artilce (have the same parent)
N :the next article (the next thread)
|<:the top of this thread
>|:the next thread
^ :the parent (reply-to)
_:the child (an article replying to this)
>:the elder article having the same parent
<:the youger article having the same parent
---:split window and show thread lists
| :split window (vertically) and show thread lists
~ :close the thread frame
.:the index
..:the index of indices
Hi,
thanks for the response, can this be combined with Ajax pagination helper?
regards
Gnan
"Levin Alexander" <levin / grundeis.net> wrote in message
news:op.svvgufi35gefrg / mail.grundeis.net...
Gnanavel <gnanavel.s / gmail.com> wrote:
> 1.I have an array of fileNames of images in the controller and I want to
> paginate the images, say 20 images per page. I got the images from
> Dir.glob.
This could probably be more readable/efficient:
module Enumerable
def paginate(size)
i = 0
self.inject([]) { |arr,item|
(arr[i/size] ||= []) << item
i += 1
arr
}
end
end
[1,2,3,4,6,7,8,9].paginate(4) #=> [[1,2,3,4],[5,6,7,8],[9]]
-Levin