Introduction To Ruby On Rails MVC Framework
- Last Updated On: September 21, 2013
- By: Scriptcrunch Editorial
What is a Framework:
A framework is a software toolkit with prewritten code libraries and datas organized in structures , which helps you in developing applications. Ruby on rails framework is based on MVC architecture. So what the heck is a MVC architecture. To put it in a simple way. MVC pattern is a way to deveop an applcation in a organized and secure way.
MVC Framework:
View: View is the web UI of the application where the user submits the requests and view contents of the application.
Controller: Controller is the integral part of the MVC architecture. Controller handles the incoming user requests from the UI and process it according to the needs. If the request is to update or delete any data from the database , the controller will process the request accordingly by sending appropriate requests to the database.
If we take the traditional web applications, the view and the controller are bundled together. when a user creates a request for some data, the code that is bundled with the UI will process the request and connect to the database based on user needs. But in MVC the UI, business logic and data are seperated.
NonMVC model:
MVC model:
Scriptcrunch Editorial
Other Interesting Blogs
[50% OFF] Kubernetes Certification Coupons (CKA, CKAD, CKS, KCNA and KCSA)
Looking for CKA coupon and other Kubernetes certification coupon codes? You have come to the right place. Following are the list of
[80% OFF] Linux Foundation Coupon for December 2024
Looking for CKA Coupon and other Linux Foundation certifications coupons? We got you covered. With the latest Linux Foundation Coupon, you can
[65% OFF] Linux Foundation LFCA, LFCS & LFCT Exam Voucher Codes
Linux Foundation has announced up to a $284 discount on its Linux certification programs Linux Foundation Certified IT Associate (LFCA) and Linux