I'm trying to get the next page link. How would I do this? I get the following error when calling link_to_next_page
undefined method `link_to_next_page'
query = Posts.page(1).per(5).includes(author: :profile)
link = link_to_next_page(query, 'Next-Page')