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 trialBlair Rorani
6,658 PointsHow 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
Treehouse Moderator 48,850 PointsAs 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.
Clayton Perszyk
Treehouse Moderator 48,850 PointsYeah, 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.
Blair Rorani
6,658 PointsBlair Rorani
6,658 PointsUnderstood. 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?