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

Tell me what is coc in rails?

780


Mention all the naming conventions in ruby on rails.

635


How will be the future for ruby on rails?

651


What are the types of caching used in rails, what are they?

633


How you run your rails application without creating databases?

635


What is the architecture of Model views and controllers

2363


What are the servers supported by ruby on rails?

662


Why ruby on rails is used for?

656


What is the function of orm in ruby on rails?

730


Explain rest in rails routes.

678


List out the few features of Ruby?

696


how does ruby on rails use the model view controller (mvc) framework?

618


What is a webrick web server?

673


what is the difference between Dynamic and Static Scaffolding?

664


What is the difference between concern and application_controller.rb in ruby on rails?

628