What is the difference between Ruby and Ruby on Rails?
Ruby on-RailsRubyRuby on-Rails Problem Overview
I have been studying Ruby for the past few days and I have noticed there is Ruby on Rails.
What is the difference between the two? Do they work together? Is the syntax the same?
Ruby on-Rails Solutions
Solution 1 - Ruby on-Rails
Ruby is a programming language. Ruby on Rails ("RoR") is a web-application framework that is implemented in Ruby.
So they not only "work together" but RoR depends on Ruby.
Solution 2 - Ruby on-Rails
Ruby is a general purpose language. Ruby on Rails is a Ruby framework for implementing web applications.
Solution 3 - Ruby on-Rails
Ruby is an interpreted scripting language for quick and easy object-oriented programming.
Ruby is a programming Language
Ruby on Rails is web-development framework.
You can read more in "Small Discussion about Ruby on Rails".
Solution 4 - Ruby on-Rails
Just like PHP has Codeigniter , CakePHP and Laravel, similarly, Ruby has Ruby on Rails ("RoR").
Solution 5 - Ruby on-Rails
Ruby is a scripting language and Rails is a framework which is built using Ruby.
Ruby and Rails are tightly coupled and "Rails is magic emerged out of Ruby". Whatever you write in a Rails application is just Ruby code. When you run a Rails application, you are just interpreting the Ruby code using Ruby's interpreter.
Solution 6 - Ruby on-Rails
Ruby on Rails is a library written in the Ruby language. Its popularity prompted many people to take up writing in Ruby to make use of it, which led many people to treat them as inseparable. :)