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

what is different between activerecord::relation's count, length and size methods?

513


How is the model view controller framework used in ruby on rails?

475


what is Polymorphic Association in Ruby on Rails?

499


What is rails active record?

471


Explain what is the role of the subdirectories app/controllers and app/helpers in rails?

494






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

510


what are some advantages of using ruby on rails?

484


Mention all the naming conventions in ruby on rails.

477


Explain how you can run rails application without creating databases?

447


when self.up and self.down method is used?

498


what is the difference between the Observers and Callbacks in Ruby on Rails?

509


What do you understand by rails migration and what it can do?

442


what are helpers and how to use helpers in ror?

528


What is Rails?

498


What is difference between form_for and form_tag?

487