Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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
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