The posts_controller page_size was set to 1 (my fault), it's fixed now (pull
from trunk).
In users_controller, it's set to 20 users:
:page => {:current => params[:page], :size => 20}
You can override that action and change the :size param.
On Fri, Aug 29, 2008 at 9:43 AM, Alejandro <[EMAIL PROTECTED]> wrote:
>
> Thanks!
>
> Another question, how do I specify the lines per page? In my blog I'm
> seeing just one per page (http://www.socialsnow.com/diablito/posts)
> and in the members I'm seeing all of them (http://www.socialsnow.com/
> users)
>
> Thanks again!
>
> On Aug 29, 11:24 am, "Bruno Bornsztein" <[EMAIL PROTECTED]>
> wrote:
> > In the latest version, I ripped out all the old classic pagination stuff,
> so
> > if you have customized views that use the old pagination, you'll have
> some
> > issues.
> > Have you modified your users_controller? I can see that in your custom
> > posts/index.html.haml you're still using the old pagination, check out
> CE's
> > posts/index.html.haml to see how it should look (something like
> > .pagination=paginating_links
> > @posts)
> >
> > On Fri, Aug 29, 2008 at 9:22 AM, Alejandro <[EMAIL PROTECTED]> wrote:
> >
> > > Also I'm getting this:
> >
> > > ActionView::TemplateError (undefined method `length' for nil:NilClass)
> > > on line #24 of posts/index.html.haml:
> > > 21:
> > > 22: = render :partial => 'post', :collection => @posts
> > > 23:
> > > 24: - if @pages.length > 1
> > > 25: .pagination
> > > 26: = link_to "« Earlier posts", { :page =>
> > > @pages.current.next } if @pages.current.next
> > > 27: = link_to " | Later posts » ", { :page =>
> > > @pages.current.previous } if @pages.current.previous
> >
> > > On Aug 29, 11:20 am, Alejandro <[EMAIL PROTECTED]> wrote:
> > > > I've updated to the last version and I'm getting this:
> >
> > > > ActionView::TemplateError (undefined method `page_count' for #<Array:
> > > > 0xb05da24>) on line #11 of vendor/plugins/community_engi
> > > > ne/app/views/users/index.html.haml:
> > > > 8: .box.user_list
> > > > 9: %h3=:site_members.l :site => AppConfig.community_name
> > > > 10:
> > > > 11: .pagination= paginating_links @users, :params => params if
> > > > @users.page_count > 1
> > > > 12:
> > > > 13: %br.clear
> > > > 14:
> >
> > > > Clues? Thanks in advance
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" 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/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---