Tutorial Series

Rails on Containers

Rails on Containers

Introduction

This series covers how to build and containerize a Ruby on Rails application. It walks through common development tasks – adding nested resources, a JavaScript framework (Stimulus.js), Bootstrap stylings, and Sidekiq and Redis to handle background jobs – before moving on to showing you how to containerize a Rails application for development.

Summary View
detailed View

Series Tutorials

Tutorial

How To Build a Ruby on Rails Application

Published on August 21, 2019

Rails is a web application framework written in Ruby. It takes an opinionated approach to application development, assuming that set conventions will best serve developers in cases where there is a common end goal.

In this tutorial, you will build a Rails application that will enable users to post information about sharks and comment on other users’ posts, creating a larger conversation about sharks and their behavior.

Tutorial

Rails is a web application framework written in Ruby that offers developers an opinionated approach to application development. As you add complexity to your Rails applications, you will likely work with multiple models, which represent your application’s business logic and interface with your database. In this tutorial, you will build on an existing Rails application that offers users facts about sharks. This application already has a model for handling shark data, but you will add a nested res

Tutorial

In this tutorial, you will install and use Stimulus to build on an existing Rails application that offers readers information about sharks. The application already has a model for handling shark data, but you will add a nested resource for posts about individual sharks, allowing users to build out a body of thoughts and opinions about sharks. You will use Stimulus to manipulate the position and appearance of posts on the page.

Tutorial

If you are developing a Ruby on Rails application, you may be interested in adding styles to your project to facilitate user engagement. Bootstrap is an HTML, CSS, and JavaScript framework designed to simplify the process of making web projects responsive and mobile ready. By implementing Bootstrap in a Rails project, you can integrate its layout conventions and components into your application to make user interactions with your site more engaging.

Tutorial

When developing a Ruby on Rails application, you may find that you have application tasks that are best performed asynchronously. Processing data, sending batch emails, or interacting with external APIs are all examples of work that can be done asynchronously with background jobs. In this tutorial, you will add Redis and Sidekiq to an existing Rails application. When you are finished, you will have a jumping off point for adding more workers and jobs to your application as needed.

Tutorial

If you are actively developing an application, using Docker can simplify your workflow and the process of deploying your application to production. This tutorial will show you how to set up a development environment for a Ruby on Rails application using Docker. You will create multiple containers – for the application itself, the PostgreSQL database, Redis, and a Sidekiq service – with Docker Compose.

Tutorial

When building modern, stateless applications, containerizing your application’s components is the first step in deploying and scaling on…

Conclusion

This series is a great place to start if you are new to Rails or containers, and will give you a firm foundation for development.

Check out all our Tutorial Series

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.