From the course: Ruby on Rails 6 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Examine how server requests are handled

Examine how server requests are handled - Ruby on Rails Tutorial

From the course: Ruby on Rails 6 Essential Training

Start my 1-month free trial

Examine how server requests are handled

- In this movie, I want to give you a better understanding of how server requests are handled in a Rails application, because there are some subtle but important points to understand. We have already seen a general diagram of the MVC Architecture, this shows a simplified version of how Ruby on Rails works. Now lets look at it a little closer. The browser, contacts a web server In development, that's going to be Puma, in production it might be Nginx or Apache, and then the web server is going to look at the public directory inside your rails project. You may remember that I told you earlier that the public directory was a little bit special, and that's why We are going to configure our web server, so that it looks at that public directory and when a request comes in from a browser, the web server will look in that public directory to see if it can find a file who's path and name exactly matches what the browser is…

Contents