To copy a IndexFor initializer to your Rails App, with some configuration values, just do:

rails generate index_for:install