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
Tell me what is ruby on rails?
Explain the controller in rails?
what are the differences between rails 2.x and rails 3?
how does ruby on rails use the model view controller (mvc) framework?
How are string and symbol different?
what is Polymorphic Association in Ruby on Rails?
What role do sub-directory app/helpers and app/controllers play?
Mention the role of rails controller.
explain request/response cycle?
How are blocks created?
Write the command to run the migration.
Where does the start_tabnav gets informations for tabs rendering in ruby rail?
what is the naming convention in Rails?
What is difference between form_for and form_tag?
what is active record?