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 to together? Is the syntax the same?
Ruby is a general purpose language. Ruby on Rails is a Ruby framework for implementing web applications.
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. :)
Ruby is a scripting language and Rails is the framework which is built using Ruby . Ruby and Rails are tightly coupled . "Rails is magic emerged out of Ruby " . What ever you write in Rails application is just a Ruby code . When you run a rails application , you are just interpreting the ruby code using ruby interpreter . Conclusion its all about Ruby !!!
Rails monkeypatches standard libraries of ruby, so it's almost like a dialect of ruby rather than merely a framework.