This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 = {}) |