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

Tell me what is orm (object-relationship-model) in rails?

433


what is the log that has to seen to check for an error in ruby rails?

476


How are blocks created?

552


hi am b,tech 2011 passedout now am learnig ROR technology may i knw what is the feature of this one and what is the salary ranges to this i heard there is a less salaries to this technology give me valuable suggestions

1899


Do you know the role of garbage collection in ruby on rails?

464






How you run your rails application without creating databases?

456


What is rails migrations?

487


What is a webrick web server?

502


How to serialize data with yaml?

519


what are benefits of using active record as opposed to raw sql queries?

492


what is Ruby on Rails?

573


Explain me what are the limits of ruby on rails?

456


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

551


Do you know what are the types of caching used in rails, what are they?

423


What are the different types of association relationships that exist?

541