Click here to navigate the course.

Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Terminal

Code Editor
Web Browser
Learn

What happens when you visit http://localhost:8000 in the browser? Check out the diagram in the browser.

  1. The browser makes a request for the URL http://localhost:8000.
  2. The request hits the Rails router in config/routes.rb. The router recognizes the URL and sends the request to the controller.
  3. The controller receives the request and processes it.
  4. The controller passes the request to the view.
  5. The view renders the page as HTML.
  6. The controller sends the HTML back to the browser for you to see.

This is called the request/response cycle. It's a useful way to see how a Rails app's files and folders fit together.

Instructions
  1. The new Rails app contains a number of files and folders. Let's find out how they work together.
Report a Bug
If you see a bug or any other issue with this page, please report it here.