Skip to content
Gwecode.
courses build components
sign up free log in
~ / courses / ruby / ruby-basics
Beginner · Ruby

Ruby for Beginners

Learn Ruby from scratch: printing output, variables, strings, numbers, arrays, hashes, conditionals, loops, methods, blocks, symbols, and how Ruby powers real websites with Ruby on Rails.

Ruby for Beginners is a warm, plain-English introduction to programming using Ruby. Starting from absolute zero, you will print your first message, store information in variables and strings, work with numbers, arrays, and hashes, make decisions, repeat actions with loops, write your own methods, use blocks, understand symbols, and see how these skills power real websites built with Ruby on Rails.

Beginner 12 lessons ~81 min Rb Ruby
Start the course
01

Getting Started with Ruby

Meet Ruby, run your first program, and learn to store and combine information with variables and strings.

3 lessons
  1. 1 What Is Ruby? Meet the friendly language behind Rails 5 min →
  2. 2 Your First Program Say hello to the world with puts 6 min →
  3. 3 Variables and Strings Store information and combine it with interpolation 7 min →
02

Working with Data

Learn how Ruby handles numbers, ordered lists, and labeled key-value pairs.

3 lessons
  1. 4 Numbers Working with integers, decimals, and math 6 min →
  2. 5 Arrays Store a list of things in one variable 7 min →
  3. 6 Hashes Store information in labeled pairs 7 min →
03

Decisions and Loops

Teach your programs to make choices, repeat actions, and organize logic into methods.

3 lessons
  1. 7 If, Else, and Unless Teach your program to make decisions 7 min →
  2. 8 Loops and .each Repeat actions without repeating yourself 7 min →
  3. 9 Methods Package up reusable pieces of code 8 min →
04

Leveling Up with Ruby

Discover blocks and symbols, then see how these skills power real websites with Ruby on Rails.

3 lessons
  1. 10 Blocks Pass a chunk of code into a method 7 min →
  2. 11 Symbols Ruby's lightweight labels 6 min →
  3. 12 How Ruby on Rails Turns Ruby into Websites See where your new skills lead 8 min →
</>
Gwecode

Free, friendly programming lessons for absolute beginners and beyond.

Courses Start here About
© 2026 Gwecode. Always free to learn.
playground
codeCtrl+Enter to run
output
Run your code to see the result.