Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Ruby Basics!
You have completed Ruby Basics!
Preview
In this video, we'll show you how to run your first Ruby program right in your browser, using Treehouse Workspaces.
Here's the code for our first program. It's just one line:
puts "Hello, Ruby!"
Here's how to run it:
- Launching the Treehouse Workspace on this video's page.
- Click in the Console area at the bottom. You'll know it's been activated if a blinking cursor appears down there.
- Type
ruby, a space, and the name of our program file,hello.rb. Then hit Enter. - Ruby will run our program, and print out the message from our code.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
I'm here to introduce you to
the Ruby programming language.
0:00
Ruby is so easy to use,
we're going to run our first program now.
0:03
I'm not kidding, let's do it right now.
0:07
If you're watching this
video on the Treehouse site,
0:10
there should be a Launch Workspace
button on the page.
0:13
Click that now.
0:15
You'll see a dialog where you can
change the name of your new Workspace.
0:16
Or you can just keep the default.
0:19
Click the Launch it
button when you're ready.
0:21
A new window will open with
the Treehouse Workspace.
0:24
Give it a minute to load.
0:27
When it launches, you'll see a sidebar on
the left with a single plain text file
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up