Open jmccartie opened 11 years ago
@jmccartie I suspect you have will_paginate installed which is conflicting with the kaminari pagination gem that tr8n and will_filter seem to require. Here's a workaround that has will_paginate behave like kaminari:
Create config/initializers/kaminari.rb which contains:
require 'kaminari'
# Have will_paginate emulate Kaminari for the gems that have kaminari as a dependency
Kaminari.configure do |config|
config.page_method_name = :per_page_kaminari
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
end
end
end
Add the following to the top of the app/helpers/application_helper.rb file:
def paginate model
will_paginate(model)
end
Getting the following error trying to access "/
I've followed the Rails 3.2.2 setup instructions. "/tr8n/dashboard" works fine, but "/phrases" and a few other tabs throw this same error.
Any ideas?