Skip to content
romul edited this page Jan 27, 2012 · 4 revisions

Kaminari looks its patials in Rails view_pathes, so to use it from Cells, you should do few additional steps:

  1. Run rails g kaminari:views default to generate copy of kaminari views inside your app

  2. Override Kaminari::Helpers::Tag#to_s as shown here:

    module Kaminari module Helpers class Tag def to_s(locals = {}) #:nodoc: @template.render :partial => "../views/kaminari/#{@theme}#{self.class.name.demodulize.underscore}", :locals => @options.merge(locals) end end end end

After that, Kaminari calls from Cell will render app/cells/../views/kaminari/* files, so you don't need to add the entire app/views folder to Cells view paths