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 - Ruby on Rails Tutorial
From the course: Ruby on Rails 6 Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Create a new Ruby on Rails project3m 56s
-
Examine the file structure of a Ruby on Rails project4m 55s
-
(Locked)
Configure a Ruby on Rails project7m 2s
-
(Locked)
Access a Ruby on Rails project from a browser2m 25s
-
(Locked)
Generate a controller and view5m 24s
-
(Locked)
Examine how server requests are handled5m 43s
-
(Locked)
Define routes in a Ruby on Rails project7m 17s
-
(Locked)
Challenge: Experiment1m 15s
-
(Locked)
-
-
-
-
-
-