How are Model views and controllers related?

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 ?    21 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain me what are the limits of ruby on rails?

446


What is a ruby singleton method ?

495


List out what can Rails Migration do?

509


Explain dry in rails?

486


Why we use migration in rails?

485






How many types of variables are available in ruby class?

482


How do I find only duplicate entries in a database table?

590


what is “Yield” in Ruby on Rails?

508


difference between member routes and collection routes ?

529


What is the latest version of ruby on rails?

499


Can you explain me how rails implements ajax?

441


Mention the role of rails controller.

481


Write a program to generate and run the application without the use of database

437


Is ruby on rails dying?

470


what is the difference between Dynamic and Static Scaffolding?

475