Learn Ruby on Rails

Read these Ruby on Rails tutorials to master the popular Ruby web framework, including how to create applications, work with databases, and implement authentication.
  1. GeoSpatial Search in Rails Using Elasticsearch

    GeoSpatial Search in Rails Using Elasticsearch

    Tutorial Intermediate

    In this tutorial, I am going to create a small Rails app. I will show you how to create a rake task to import some venues from Foursquare to our database....

  2. Exploring Devise, Part 1

    Exploring Devise, Part 1

    Tutorial Intermediate

    Devise is an authentication system that is used in Rails applications. In this tutorial, you will be learning how to use Devise.

  3. Non-ActiveRecord Models in Rails 4

    Non-ActiveRecord Models in Rails 4

    Tutorial Intermediate

    ActiveRecord comes with a powerful set of validators and other features for attributes of a persisted data model. But what happens when you need a complex...

  4. Generating PDFs From HTML With Rails

    Generating PDFs From HTML With Rails

    Tutorial Intermediate

    There are many ways to generate PDFs in Ruby and Rails. Chances are that you are already familiar with HTML and CSS, so we are going to use PDFKit to...

  5. Building a Simple Shopify App

    Building a Simple Shopify App

    Tutorial Beginner

    Shopify have created their APIs and App Store so that independent developers can build out (and charge for) features their merchants want. In this article,...

  6. Rake 301

    Rake 301

    Tutorial Beginner

    This final article looks at FileList, Pathmap, CLEAN, CLOBBER, and passing arguments. These are not super important for beginners right away, but they will...

  7. Rails Image Upload Using Dragonfly

    Rails Image Upload Using Dragonfly

    Tutorial Beginner

    File uploading is an important feature in web applications. Aside from enabling users to upload profile pictures, the use of file uploading features varies....

  8. Rake 101

    Rake 101

    Tutorial Beginner

    This article explains the basics of Rake. It’s a super popular build tool that is written in Ruby. It offers a lot of flexibility and is used to manage all...

  9. Rails Image Upload: Using Paperclip in a Rails Application

    Rails Image Upload: Using Paperclip in a Rails Application

    Tutorial Intermediate

    Paperclip is an awesome gem to integrate into your application for enabling image uploading functionality for your users.

  10. Ruby Templating With Slim: Part 2

    Ruby Templating With Slim: Part 2

    Tutorial Beginner

    In the second and last part of this mini series, we’ll finish this introduction with sections about outputting Ruby code, interpolation, plain text and how...

  11. An Introduction to Slim Templates

    An Introduction to Slim Templates

    Tutorial Beginner

    In Ruby land, if you are looking for a new templating engine that lets you write super succinct markup that is also highly readable and customizable, Slim...

  12. Building a CMS: rubyPress

    Building a CMS: rubyPress

    Tutorial Intermediate

    With Virtual Private Servers getting more affordable, it is easier than ever to set up a unique Content Management System for a web site. In this tutorial, I...