Skip to content

Instantly share code, notes, and snippets.

@asvetly
Created August 27, 2017 10:07
Show Gist options
  • Save asvetly/22b8522972b71051e7b5980b9ffd5ed9 to your computer and use it in GitHub Desktop.
Save asvetly/22b8522972b71051e7b5980b9ffd5ed9 to your computer and use it in GitHub Desktop.
.main-container
h1.page-header = t 'posts.header'
.posts-list
= render partial: 'partials/posts', locals: { posts: @posts }
# 'container' - where we want to load next page of posts
= render partial: 'partials/pagination', locals: { endpoint: @endpoint, page_count: @page_count, container: '.posts-list' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment