This is the method of installing Kaminari.
https://github.com/kaminari/kaminari
First, You have to run this command on CLI, and Kaminari is installed in your Rails project.
$ bundle install
If you want to change from Erb template to Slim template, I recommend that you refer to below, because a good tool is introduced there.