Hi,

I am trying paginate (will_paginate) users posts. It is counting and
showing the page links correctly, but still showing all the posts on one
page.

@entries = @user.entries.paginate :per_page => 5, :page =>
params[:page], :order => 'created_at DESC'

If I change it to @entries = Entry.paginate :per_page => 5 ........
It is fine, but I would like to show only given users posts.

Thx, pete
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to