I've installed the latest will_paginate gem v2.3.12 (not the agnostic
branch from git) but the published gem.  Is this supposed to work with
merb?
I'm using merb 1.1.0.pre on ruby 1.9.1.  I have added "gem
will_paginate" to my merb app's Gemfile.

Should I just build the older agnostic branch from git and use that
instead?

I have 2 problems:

1 -  I can't figure out how to get the ViewHelpers included into my
GlobalHelpers.  I thought this would be automatic and can't find a
manual way.

2 - I'm using the manual method for creating a
WillPaginate::Collection (I'm using mongo, no fancy mapper
frameworks).  I have code like so:
   @entries = WillPaginate::Collection.create(page, per_page, count)
do |pager|
        pager.replace(collection)
    end

I would expect this to work but get errors finding the class
WillPaginate::Collection so I explicitly require "will_paginate" in
the module I'm referencing the class and get this error:

/usr/local/ruby-191-p243/lib/ruby/gems/1.9.1/gems/
will_paginate-2.3.12/
lib/will_paginate.rb:1:in `require': no such file to load --
active_support (LoadError)

I though will_paginate was supposed to detect that I wasn't using
Rails and not try to load these things.

Any advice?
thanks, Jon

-- 
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en.

Reply via email to