Use resource to pull posts from Rails API.