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

Explain rvm in rails?

589


how can we define Ruby regular expressions?

632


Explain some features of nested scaffolding.

662


If you want to set up a one-to-one relationship between two models, you'll need to add belongs_to to one, and has_one to the other. How do you know which is which?

609


what is the difference between redirect and render in Ruby on Rails?

717


Write a program to show the functionality of request.xhr in ruby on rails ?

635


What is the importance of rjs?

639


what is the purpose of RJs in Rails?

718


How is visibility of methods changed in ruby (encapsulation) ?

612


What are gemsets in rails?

606


How is dynamic scaffolding different from static scaffolding?

627


Explain rest in rails routes.

664


Explain unobtrusive javascript in rails.

645


what is the use of super function in ruby on rails?

680


what is “Yield” in Ruby on Rails?

657