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

Sandeep Batchu
Sandeep Batchu
2,311 Points

Editor to use

Hey I am a newbie in ruby and I have recently installed the ruby 2.2 Is there a way I can create and run the prog other than command line. If yes how do I create the .rb files Thank You

3 Answers

Hey Sandeep,

Ruby files are just plain text files with a .rb extension. A couple great IDEs that I know of that can be used for Ruby development are Aptana Studio 3 and Brackets. Aptana Studio is one of the best free and open source editors out there for web programming, and it has binaries for Windows, Mac OS X, and Linux. Brackets has binaries for all 3 main types of operating systems, as well, but it lacks some features that Aptana has for developing in Ruby.

Sage Elliott
Sage Elliott
30,003 Points

Hello! I use sublime text Which is often used in the treehouse videos and has a large following. It has a built "build system" for ruby so you can simply hit Command P on a mac(probably something similar on a PC) and it will run your .rb file in a "terminal like window at the bottom of the editor. You can also create your own build system so you could probably make a shortcut for it to open up in a new window. I would also check out Atom. It probably has something similar. There are more full featured IDEs like rubymine, but you don't NEED it.

Check them out and let me know if that's kind of what you're looking for.

Hello and excuse me for my late reply. You can write ruby in any text editor. In most of treehouse videos we use sublime and you can install it both in windows and mac. Sorry but I do not know any other way to rum rb files than terminal or windows command line.

You can run Sublime Text in Windows, Mac, and Linux systems.