Save 36% for Black Friday! Learn more

New Discussion

Notifications

You’re not receiving notifications from this thread.

Pagy Frontend Extra MAterialize

1
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!

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

Join the discussion
Create an account Log in