On Nov 27, 11:30 am, Petan Cert <[EMAIL PROTECTED]>
wrote:
> 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.
>
Is your entries association funny in any way ?

Fred
> Thx, pete
> --
> Posted viahttp://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