Forum: Ruby on Rails paginating collection.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
raj ma (Guest)
on 2007-05-23 10:53
might be basic question but need help

def list
  search_alpha  = params[:starts_with]+'%'
  @posts = Post.find( :all, :conditions => [ "title LIKE ?",
search_alpha ] )
  #@post_pages, @posts = paginate :posts, :per_page => 10

I want to paginate the @posts. The commented line dispaly all posts but
not quired posts.

Thank you.
unknown (Guest)
on 2007-05-23 10:56
(Received via mailing list)
dear sender,
i´m out of the office until may 29th.
your email will not be forwarded.
for urgent stuff please contact removed_email_address@domain.invalid
kind regards,
raj ma (Guest)
on 2007-05-23 11:00
I got it.

Thank you.
This topic is locked and can not be replied to.