From the course: Ruby on Rails 5 Essential Training

Unlock the full course today

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

Server request handling

Server request handling - Ruby on Rails Tutorial

From the course: Ruby on Rails 5 Essential Training

Start my 1-month free trial

Server request handling

- [Instructor] In this movie, I want to give you a better understanding of how server requests are handled, because there are some subtle, but important points to understand. Previously, when we looked at the MVC web architecture, I showed you a diagram that simplify this down to just the MVC portion. Let me now give you a slightly more expansive diagram that shows the view of the Rails architecture, and how it implements MVC. A request originates with the browser, it goes to the Web server for processing. In our case, in development, that's going to be the Puma Web server, but it can also be the Apache, NGINX, or any other kind of Web server. The Web server is then going to look inside the project's public directory for a file whose path and name exactly match the browser's request. If it finds this file, it will return the file with the browser, and it will never access the Rails framework at all. This is useful because sometimes we want to return static HTML pages, images…

Contents