Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby The Solution

How do you run the code/exercise in the workspace console?

Additionally; what are the different varietes/versions of Ruby & which would/should I download for a coding bootcamp I am attending?

2 Answers

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher
  1. Click the "Launch Workspace" button on the video page.
  2. Write your own code in the rectangle.rb file to complete the practice, or follow along with the solution video.
  3. Save your code file.
  4. Click in the Console area so a blinking cursor appears.
  5. Type the command ruby rectangle.rb, and press Enter/Return.

Direct & straight to the point; thank you.

Ari Misha
Ari Misha
19,323 Points

Hiya there! You should always work with latest or LTS(long-term support) version of any language 'coz firstly, its the most stable build and secondly, it's backward compatible to any version. And the same goes for Ruby. If you're working on a project, which uses the legacy version of Ruby, you might wanna migrate to a container like architecture, which would make deploy the architecture easier, kinda like Docker.

I hope it helped!

~ Ari

why was this downvoted? seems a sound argument to me..