Forum: Ruby on Rails paginating collection.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
67654ec62eab59ae168f2c58250d65dd?d=identicon&s=25 raj ma (Guest)
on 2007-05-23 08: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
end

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

Thank you.
7a03066e8719f4d938bf622351ce4e7b?d=identicon&s=25 unknown (Guest)
on 2007-05-23 08: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 joern@fork.de
kind regards,
alexander
67654ec62eab59ae168f2c58250d65dd?d=identicon&s=25 raj ma (Guest)
on 2007-05-23 09:00
I got it.

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