Please see my comment on your issue with the same problem on GitHub.
On Sun, Oct 6, 2013 at 3:47 AM, Роман Верещагин wrote:

I'm using spree 2-0-stable with refinerycms and have a conflict with
kaminari and will_paginate using together.
I have added config/initializers/will_paginate.rb
if defined?(WillPaginate)
module WillPaginate
module ActiveRecord
module RelationMethods
def per(value = nil) per_page(value) end
def total_count() count end
end
end
module CollectionMethods
alias_method :num_pages, :total_pages
end
endend
But still have an error:
http://0.0.0:3000/api/taxons?ids=3,24&token=96935bb3fa10c88177b49f234013156de8503c75ffd62449
{"exception":"undefined method `count' for 20:Fixnum"}

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedOct 6, '13 at 12:07a
activeOct 6, '13 at 12:07a
posts1
users1
websitespreecommerce.com
irc#RubyOnRails

1 user in discussion

Ryan Bigg: 1 post

People

Translate

site design / logo © 2022 Grokbase