What is the functionality of Model views and controllers

Answer Posted / abhi2810

MVC is a pattern for the architecture of a software
application. It separates an application into the following
three components:

* models, for handling data and business logic
* controllers, for handling the user interface and
application logic
* views, for handling graphical user interface objects
and presentation logic

This separation results in user requests being processed as
follows:

1. The browser, on the client, sends a request for a page
to the controller on the server.

2. The controller retrieves the data it needs from the
model in order to respond to the request.

3. The controller renders the page and sends it to the view.

4. The view sends the page back to the client for the
browser to display.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between gem and plugin?

701


who developed rails?

680


what is testing in rails?

732


What is agile development? What are the strengths?

655


what are the positive aspects of Rails?

627


What are class libraries?

661


What is the importance of rjs?

651


What is the directory structure of rails?

663


What are models in rails?

625


how you define Instance Variable, Global Variable and Class Variable in Ruby?

681


Explain me the log that has to be seen to report errors in ruby rails?

561


What do you mean by render and redirect_to?

645


what is the function of garbage collection in Ruby on Rails?

673


Do you know what is rake in rails?

633


What is the difference between symbol and string?

703