Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Coding/Programming Interviews:Active Template Library (ATL)ActiveXApplication DeveloperArtificial intelligenceAssemblyAssociate Software EngineerAWKAWTC ProgrammingC++ ProgrammingCGI PerlCGI ProgrammingCMMICobolCritical ReasoningData Structures TreesDCOM COMDelphiDTDE4XExtensible Stylesheet Language (XSL)FortranFull-Stack DeveloperHaskellHTML DOMILUIPhone DeveloperJasper Reports DeveloperJava DeveloperLisp ProgrammingLotus NotesMicrosoft Foundation Class (MFC)Mobile DeveloperMVC DeveloperNode.jsOOPPascalPerl ProgrammingPHPPHP DeveloperProgrammingProgramming AlgorithmsProgramming ConceptsPythonRubyRuby on RailsRuby on Rails DeveloperSenior Front End DeveloperSenior Software DeveloperSignature ProgramSOASocket ProgrammingSoftware Development EngineerSoftware engineeringSr. PHP ProgrammerStack And QueueSTLSwift DeveloperTCL (Tool Command Language)Team Leader Android DeveloperUMLUnity 2D Games DeveloperUnity 3D DeveloperUnity DeveloperVBA (Visual Basic for Applications)Visual Basic (VB)Visual C++Web DevelopmentWin32APIWindows ProgramingWordPress DevelopmentWSDLXFormsXHTMLXLinkXMLXPathXQueryXSL-FOXSLT
Copyright © 2018. All Rights Reserved
Ruby on Rails Developer Interview Question:
Please explain request/response cycle?
Submitted by: MuhammadLet's explain request/response flow in Rails:
☛ The user opens their browser and enters a URL.
☛ The browser sends a GET request to the URL. The request hits the Rails Router (config/routes.rb).
☛ The router receives the request information from the web server and based on that, decides which controller action should be called. If a request matches to any path in the routes file, the corresponding controller and action will be called.
☛ The controller receives the parameters from the router and passes them into appropriate model methods.
☛ The model queries a database to fetch data.
☛ The Database returns stored data to the model.
☛ The model manages the data and returns it to the controller.
☛ The controller feeds the received data to the view.
☛ The view renders the page as HTML, prepares a response and forwards it to the controller.
☛ The controller forwards the ready response to the browser.
☛ The browser displays a response to the user.
Submitted by: Muhammad
☛ The user opens their browser and enters a URL.
☛ The browser sends a GET request to the URL. The request hits the Rails Router (config/routes.rb).
☛ The router receives the request information from the web server and based on that, decides which controller action should be called. If a request matches to any path in the routes file, the corresponding controller and action will be called.
☛ The controller receives the parameters from the router and passes them into appropriate model methods.
☛ The model queries a database to fetch data.
☛ The Database returns stored data to the model.
☛ The model manages the data and returns it to the controller.
☛ The controller feeds the received data to the view.
☛ The view renders the page as HTML, prepares a response and forwards it to the controller.
☛ The controller forwards the ready response to the browser.
☛ The browser displays a response to the user.
Submitted by: Muhammad
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.