All threads / Pagy Frontend Extra MAterialize

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!

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

Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.