Skip to content

Instantly share code, notes, and snippets.

View Jake-Day-Williams's full-sized avatar

Jake Day Williams Jake-Day-Williams

View GitHub Profile
@Jake-Day-Williams
Jake-Day-Williams / will_paginate.rb
Last active November 17, 2017 03:59
How to get will_paginate to work with materialize
# Working with Rails 5.1.3
# With 'will_paginate', '~> 3.1', '>= 3.1.6'
# Simply put <%= will_paginate @collection %> in your view.
# Add the below to config/initializers/will_paginate.rb
# Restart server.
# Sip wine.
module WillPaginate
module ActionView
def will_paginate(collection = nil, options = {})