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 Ruby Basics Ruby Syntax Variables

Blair Rorani
Blair Rorani
6,658 Points

How do I run a Ruby app?

I know how to run .rb files from Terminal on macOS. What If I made an app in Ruby, where is it intended to be run? Example, I can code macOS apps in Swift and run them on my Mac. I can run Rails apps in my browser. Where do I run Ruby apps apart from Terminal?

2 Answers

Clayton Perszyk
MOD
Clayton Perszyk
Treehouse Moderator 48,723 Points

As stated in this article:

"You can use Ruby just like you would use any other general-purpose scripting language. A few examples would be web applications, web servers, system utilities, database work, backups, parsing, even biology and medicine."

So, Whereas Rails and Swift have a more specific purpose, Ruby can be used to develop a variety of apps and programs.

Blair Rorani
Blair Rorani
6,658 Points

Understood. Thanks Clayton. I guess an example would be, I make a calculator app in rails, is that most likely going to be a web app?

Clayton Perszyk
MOD
Clayton Perszyk
Treehouse Moderator 48,723 Points

Yeah, Rails is a framework specifically for building web apps. It has everything you need to develop a full stack (backend and front end) web app.