What is the functionality of Model views and controllers

Answers were Sorted based on User's Feedback



What is the functionality of Model views and controllers..

Answer / guest

Model:Model is responsible for maintaining the database.

views:View is responsible for generating user interface.

controllers:Getting input request from browser and generate
outgoing response.

Is This Answer Correct ?    12 Yes 0 No

What is the functionality of Model views and controllers..

Answer / 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

More Ruby on Rails Interview Questions

What is cross-site request forgery (csrf)? How is rails protected against it?

0 Answers  


what are rails filters?

0 Answers  


Difference between gem and plugin?

0 Answers  


Explain me the log that has to be seen to report errors in ruby rails?

0 Answers  


how many types of callbacks available in ror?

0 Answers  






What is the main function of helpers used in ruby on rails?

0 Answers  


What do you understand by rails?

0 Answers  


How would you create a controller for the subject?

0 Answers  


Explain rvm in rails?

0 Answers  


What are naming conventions?

0 Answers  


What is the use of super in Ruby Rails?

0 Answers  


Mention all the naming conventions in ruby on rails.

0 Answers  


Categories