top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the role of MVC architecture in Ruby on Rails?

+1 vote
439 views
What is the role of MVC architecture in Ruby on Rails?
posted Oct 27, 2014 by Amit Kumar Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

MVC (Model-View-Controller) is the architecture that provides flexibility and scalability of the applications.

=> It is almost having the same concept in any other language like PHP, Perl or Python. It is one of the major used architecture involved today due to its simplicity.

=> Controller is the main part in this kind of architecture where it handles the request that is coming from another controller.

=> Controller contacts the view and passes on the request to the view and it also interacts with the model to define the type of request.

=> Model is responsible for interacting with the database and provides the responses to the controller.

=> Controller takes the response and gives the response in the output form to the user that has made the request.

answer Oct 28, 2014 by Kali Mishra
...