Using Contentful with Ruby

SDKs

Our SDKs give you access to our APIs and their features.

Content Delivery API SDK

This SDK interacts with the Content Delivery API, a read-only API for retrieving content from Contentful. All content, both JSON and binary, is fetched from the server closest to a user's location using our global CDN.
View on GitHub
API reference

Content Management API SDK

This SDK interacts with the Content Management API, and allows you to create, edit, manage, and publish content. The API also offers tools for managing editorial teams and cooperation.
View on GitHub
API reference

Tutorials

Create and deploy a Rails application using Contentful

This guide explains how to use Contentful with a Ruby on Rails application.

API demo

This guide is the perfect starting point to learn how to make calls to Contentful APIs, explains what responses look like, and suggest next steps.

Getting started with the Content Delivery API SDK and Ruby

This tutorial will walk you through the first steps using the Content Delivery API with a Ruby application.

Create your own Rails application using Contentful

This guide shows you how to create a Ruby on Rails application from scratch and integrate it with Contentful.

Getting started with the Content Management API SDK and Ruby

This tutorial will walk you through the first steps using the Contentful Management API with a Ruby application.

Tools and integrations

Contentful bootstrap command line tool

This tool will help you create, populate and manage your Contentful spaces from the command line. Read this tutorial to learn more about how to use the tool.

Contentful webhook listener

A simple HTTP webserver for listening to API webhooks that you can override to suit your own behaviors.
View on GitHub

Rails integration

A collection of useful gems that make it easier to integrate Contentful into a Rails app. Read this blog post to find out how to use them in your applications.
View Contentful Rails on GitHub
View Contentful Model on GitHub

Example apps

Rails product demo

A Rails application that connects to a Contentful product catalogue example space.
View on GitHub

Sinatra product demo

A Sinatra application that connects to a Contentful product catalogue example space.
View on GitHub