Make sure you have gem 'kaminari'
in your Gemfile, that you run bundle
and restarted the server.
Additionally, someone had the same issue as you, and their solution was to require kaminari
in config/application.rb just before require 'rails/all'.