Summarise the main features of the Ruby on Rails technology for building web applications. In particular comment on the use of the MVC architecture, ActiveRecord and the stringent naming convention.
- Open source web framework thats optimized for programmer happiness and sunstainable productivity.
- MVC:
- Like many contemporary web frameworks, Rails uses the Model-View-Controller (MVC) architecture pattern to organize application programming.[5]
- For instance, if there is a class that is named “date” in the model, then the related table in the database source will automatically be named “date.”
- Active record:
- Ruby on Rails is separated into various packages, namely ActiveRecord (an object-relational mapping system for database access),
- Naming convention:
- “Convention over Configuration” means a developer only needs to specify unconventional aspects of the application. For example, if there is a class Sale in the model, the corresponding table in the database is called sales by default. It is only if one deviates from this convention, such as calling the table “products sold”, that the developer needs to write code regarding these names. Generally, this leads to less code and less repetition.
Advertisement