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.
  1. RSpec Testing for Beginners, Part 1

    RSpec Testing for Beginners, Part 1

    Tutorial Beginner

    Are you new to Rails? New to coding? Curious about RSpec and how you can start testing? If so, this article should be a good starting point for you to get...

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

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

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

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

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

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

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

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

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

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

  12. Choose a Ruby Template Engine: ERB vs. Haml

    Choose a Ruby Template Engine: ERB vs. Haml

    Course Beginner

    The default templating language in Ruby on Rails is ERB. ERB has a simple syntax for mixing HTML and Ruby commands, but it can be somewhat verbose. Haml is a...