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

What is action cable?

508


How can you protect filter methods in rails?

460


What are rails validation used for?

478


What is the purpose of load in ruby?

483


What is rails scaffolding?

580






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

500


Mention all the naming conventions in ruby on rails.

469


What is ruby on rails & why it is used for?

420


What does session and cookies represent in ruby on rails?

415


How does router work in rails?

447


Explain rails migration.

518


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

1886


what is ORM (Object-Relationship-Model) in Rails?

541


how can you declare a block in Ruby?

485


What is difference between form_for and form_tag?

481