Ask A Question

Notifications

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?

Thanks!

Reply

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

Reply
Join the discussion
Create an account Log in

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

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

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