Paginating collection

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.

dear sender,
i´m out of the office until may 29th.
your email will not be forwarded.
for urgent stuff please contact [email protected]
kind regards,
alexander

I got it.

Thank you.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs