Learn Ruby

Learn the Ruby programming language with this collection of Ruby tutorials. Complete practical projects and learn to use popular frameworks like Ruby on Rails.

All Ruby content:

  1. RSpec Testing for Beginners, Part 2

    RSpec Testing for Beginners, Part 2

    Tutorial Beginner

    The second article in this short series teaches you how to use various matchers that come with RSpec. It also shows you to to slice your test suite through...

  2. 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....

  3. Rake 201

    Rake 201

    Tutorial Beginner

    In this second article about Rake, we dive a little deeper and cover slightly advanced topics like file tasks, rules, multitasks and more that will improve...

  4. 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...

  5. 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.

  6. Queries in Rails, Part 3

    Queries in Rails, Part 3

    Tutorial Beginner

    In this last article, you will learn about queries in a few more involved scenarios and how you can refactor more complex queries that span across associations.

  7. Queries in Rails, Part 2

    Queries in Rails, Part 2

    Tutorial Beginner

    In this second article, we leave the absolute basics of Active Record behind and look into a few more tasty bits that Rails has to offer to nuance your...

  8. Queries in Rails, Part 1

    Queries in Rails, Part 1

    Tutorial Beginner

    In this article you will learn the basics of Active Record queries and learn a few fundamentals about SQL along the way. It is targeted at beginners who want...

  9. 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...

  10. 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...

  11. 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...

  12. AntiPatterns Basics: Rails Controllers

    AntiPatterns Basics: Rails Controllers

    Tutorial Beginner

    If you have lived on the “fat models, skinny controllers” diet, you have definitely been going in the right direction. Keeping controllers skinny, though, is...