Ask A Question


You’re not receiving notifications from this thread.

Pagy Frontend Extra MAterialize

Víctor Soto asked in Rails

Hi Chris,

I followed your toturial of pagination with Pagy gem, all is fine until when I add the extra frontend materialize. I did this:

  1. Create a pagy.rb file into config/initializers folder
  2. Add this line require 'pagy/extras/materialize' in pagy.rb
  3. In my view use <%= pagy_materialize_nav(@pagy).html_safe %>

when I restart rails server, get this error:
`require': cannot load such file -- pagy/extras/materialize (LoadError)

What can I do to solve it?



Did you add the gem 'pagy' into the Gemfile?

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 79,047+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2023 GoRails, LLC. All rights reserved.