Now that the basics of Ruby have been introduced, let us move on to the next stage—RoR. If you ask the question, 'What is RoR?', the most common answer will be, 'RoR is a Ruby-based framework that implements the MVC pattern'. There are two key points in this answer:
It is a Ruby-based Framework
It Implements the MVC pattern
Let us have a look at these points in detail.
The dynamic and open-ended nature of Ruby makes it an attractive option to build frameworks. Given the ease of meta-programming and reflection, blocks and iterators along with the exception handling, you have a language that could service any tier of a web application. That's what Mr. Hansson did. He took the different services provided by Ruby and created RoR out of it.
How Ruby eases the meta-programming is evident from Active Record, the ORM framework within RoR. Based on the name of the class, RoR (basically Ruby constructs) reads the schema and creates the objects of...