Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def index
@hobby_posts = Post.by_branch('hobby').limit(8)
@study_posts = Post.by_branch('study').limit(8)
@team_posts = Post.by_branch('team').limit(8)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment