Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
pagination nightmare
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ztroy  
View profile  
 More options Jun 27, 7:48 pm
From: ztroy <skylarking...@gmail.com>
Date: Sat, 27 Jun 2009 16:48:37 -0700 (PDT)
Local: Sat, Jun 27 2009 7:48 pm
Subject: pagination nightmare
I wish someone can give me some guidelines on how to make Sven's
mephisto_paged_article_list work with mephisto drax(0.8). I have
experienced several issues while trying to making it work, always
falling into the dreaded Liquid error: undefined method `total_pages'

Sven did an astonishing job trying to include pagination, but it seems
that it's not an easy task to achieve out of the box by using his
will_paginate_liquidized plugin from svn.

I'd like to have some info from anyone having it working about the
correct version of mephisto, will_paginate and
will_paginate_liquidized, since it seems that the problem is due to
the fact that Sven, or better, mephisto itself, was based on an
outdated version of the will_paginate plugin. From what I see in 0.8.2
it now requires the will_paginate as a gem in environment.rb
config.gem 'will_paginate', :version => '>= 2.2.2'

I also tried with another version of the will_paginate_liquidized
found here http://github.com/hiddenloop/will_paginate-liquidized/tree/master
with no luck:(

Thanks in advance!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yortz  
View profile  
 More options Jun 28, 1:15 pm
From: yortz <skylarking...@gmail.com>
Date: Sun, 28 Jun 2009 10:15:44 -0700 (PDT)
Local: Sun, Jun 28 2009 1:15 pm
Subject: Re: pagination nightmare
Well as a quick reminder to anyone interested, I actually went through
the total_pages undefined method error by renaming all references to
page_count to total_pages in will_paginate_liquidized and
mephisto_paginated_article_list, tough in my liquid layout when i am
limiting the number of articles in my layout it now gives me no more
errors, it just doesn't display the previous, next, or digg styled
navigation.

On Jun 28, 1:48 am, ztroy <skylarking...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yortz  
View profile  
 More options Jun 29, 8:55 am
From: yortz <skylarking...@gmail.com>
Date: Mon, 29 Jun 2009 05:55:35 -0700 (PDT)
Local: Mon, Jun 29 2009 8:55 am
Subject: Re: pagination nightmare
still no reply, well as a quick reminder to myself, it nows gives me
a

 NoMethodError in MephistoController#dispatch

undefined method `path_for' for #<Liquid::Strainer:0x63fb9c4>

vendor/plugins/mephisto_paged_article_list/lib/paged_article_list/
link_helpers.rb:23:in `link_to_next_page'
vendor/gems/liquid-1.9.0/lib/liquid/context.rb:55:in `__send__'
vendor/gems/liquid-1.9.0/lib/liquid/context.rb:55:in `invoke'
vendor/gems/liquid-1.9.0/lib/liquid/variable.rb:44:in `render'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:2831:in `inject'
vendor/gems/liquid-1.9.0/lib/liquid/variable.rb:39:in `each'
vendor/gems/liquid-1.9.0/lib/liquid/variable.rb:39:in `inject'
vendor/gems/liquid-1.9.0/lib/liquid/variable.rb:39:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:90:in `render_all'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:88:in `collect'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:88:in `render_all'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:78:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/template.rb:121:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/tags/include.rb:47:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/context.rb:90:in `stack'
vendor/gems/liquid-1.9.0/lib/liquid/tags/include.rb:32:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:90:in `render_all'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:88:in `collect'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:88:in `render_all'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:78:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/template.rb:121:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/template.rb:128:in `render!'
lib/mephisto/liquid/liquid_template.rb:19:in `parse_template'
lib/mephisto/liquid/liquid_template.rb:25:in `parse_inner_template'
lib/mephisto/liquid/liquid_template.rb:10:in `render'
app/models/site.rb:206:in `call_render'
app/controllers/application.rb:87:in `render_liquid_template_for'
app/controllers/mephisto_controller.rb:11:in `send'
app/controllers/application.rb:108:in `get_requests_are_readonly'
config/initializers/readonly_records.rb:18:in `with_readonly_records'
app/controllers/application.rb:107:in `get_requests_are_readonly'

at least i got something else to take care of...

On Jun 28, 7:15 pm, yortz <skylarking...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yortz  
View profile  
 More options Jun 29, 9:08 am
From: yortz <skylarking...@gmail.com>
Date: Mon, 29 Jun 2009 06:08:36 -0700 (PDT)
Local: Mon, Jun 29 2009 9:08 am
Subject: Re: pagination nightmare
if i instead use the {{  articles | will_paginate: path_info }} it
renders another error

 NoMethodError in MephistoController#dispatch

undefined method `content_tag' for
#<WillPaginate::Liquidized::LinkRenderer:0x614cd7c>

vendor/plugins/will_paginate_liquidized/lib/will_paginate/liquidized/
view_helpers.rb:47:in `page_link_or_span'
vendor/gems/will_paginate-2.2.2/lib/will_paginate/view_helpers.rb:
220:in `windowed_links'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:2831:in `inject'
vendor/gems/will_paginate-2.2.2/lib/will_paginate/view_helpers.rb:
217:in `each'
vendor/gems/will_paginate-2.2.2/lib/will_paginate/view_helpers.rb:
217:in `inject'
vendor/gems/will_paginate-2.2.2/lib/will_paginate/view_helpers.rb:
217:in `windowed_links'
vendor/gems/will_paginate-2.2.2/lib/will_paginate/view_helpers.rb:
183:in `to_html'
vendor/gems/will_paginate-2.2.2/lib/will_paginate/view_helpers.rb:
98:in `will_paginate_without_liquid'
vendor/plugins/will_paginate_liquidized/lib/will_paginate/liquidized/
view_helpers.rb:11:in `will_paginate'
vendor/plugins/will_paginate_liquidized/lib/will_paginate/liquidized/
view_helpers.rb:17:in `with_renderer'
vendor/plugins/will_paginate_liquidized/lib/will_paginate/liquidized/
view_helpers.rb:10:in `will_paginate'
vendor/gems/liquid-1.9.0/lib/liquid/context.rb:55:in `__send__'
vendor/gems/liquid-1.9.0/lib/liquid/context.rb:55:in `invoke'
vendor/gems/liquid-1.9.0/lib/liquid/variable.rb:44:in `render'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:2831:in `inject'
vendor/gems/liquid-1.9.0/lib/liquid/variable.rb:39:in `each'
vendor/gems/liquid-1.9.0/lib/liquid/variable.rb:39:in `inject'
vendor/gems/liquid-1.9.0/lib/liquid/variable.rb:39:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:90:in `render_all'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:88:in `collect'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:88:in `render_all'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:78:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/template.rb:121:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/tags/include.rb:47:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/context.rb:90:in `stack'
vendor/gems/liquid-1.9.0/lib/liquid/tags/include.rb:32:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:90:in `render_all'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:88:in `collect'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:88:in `render_all'
vendor/gems/liquid-1.9.0/lib/liquid/block.rb:78:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/template.rb:121:in `render'
vendor/gems/liquid-1.9.0/lib/liquid/template.rb:128:in `render!'
lib/mephisto/liquid/liquid_template.rb:19:in `parse_template'
lib/mephisto/liquid/liquid_template.rb:25:in `parse_inner_template'
lib/mephisto/liquid/liquid_template.rb:10:in `render'
app/models/site.rb:206:in `call_render'
app/controllers/application.rb:87:in `render_liquid_template_for'
app/controllers/mephisto_controller.rb:11:in `send'
app/controllers/application.rb:108:in `get_requests_are_readonly'
config/initializers/readonly_records.rb:18:in `with_readonly_records'
app/controllers/application.rb:107:in `get_requests_are_readonly'

....STUCK!:(

On Jun 29, 2:55 pm, yortz <skylarking...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google