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

General Discussion

Abdullah Mohamed
Abdullah Mohamed
17,323 Points

Ruby or Ruby on rails ?

what is the difference between ruby and ruby on rails and what is the uses for each one and what to learn first ?

2 Answers

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Hi Abdullah,

Good question, this is a common question from people unfamiliar with frameworks.

Ruby is a programming language. It's a fantastic language to learn with a really beginner friendly and simple syntax. I personally love Ruby for it's minimalistic (but not limited) approach.

Ruby on Rails is a web application framework made with Ruby and also uses the Ruby programming language to add to the framework and make it do what you want it to do. Think of it like a skeleton that is pre-made, waiting for you to write the ruby code (the flesh, organs and vitals) in order to get a fully functioning web app (fully functioning human).

You should definitely learn Ruby before learning Ruby on Rails, otherwise Rails would not make any sense and you wouldn't be able to do anything with it.

I recommend following one of the pre-made Tracks in Treehouse for Ruby that leads onto Ruby on Rails. This is the best way to learn both and it is structured well for learning Ruby.

I can go into more detail if you want, but this is the general gist of it.

Abdullah Mohamed
Abdullah Mohamed
17,323 Points

Thanks John so I should start Learn Ruby track first ?

John Steer-Fowler
John Steer-Fowler
Courses Plus Student 11,734 Points

Yes, I recommend starting with the Learn Ruby track and then moving on to the Ruby on Rails track once you are done.

Ruby is a fantastic language :D

Good Luck