27.02.2013 Views

Rails%203%20In%20Action

Rails%203%20In%20Action

Rails%203%20In%20Action

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1. GET /images/rails.png<br />

2. Does<br />

/public/images/rails.pngg<br />

exist?<br />

Filesystem<br />

Browser<br />

Middleware<br />

ActionDispatch::Static<br />

Figure 18.4<br />

ActionDispatch::Static request<br />

1. GET /projects<br />

2. Does<br />

/public/projects.html<br />

exist? 3. Nope!<br />

Filesystem<br />

Browser<br />

ActionDispatch::Static<br />

4. Serves static asset<br />

3. Yes!<br />

Ok, reading...<br />

ActionDispatch::BestStandardsSupport<br />

ProjectsController<br />

(other middleware)<br />

(more middleware)<br />

Ticketee::Application.routes<br />

Middleware Stack<br />

Application<br />

6. Is shown the page for /projects<br />

4. Sets XX-UA-Compatible UA<br />

header<br />

5. Serves the request as usual<br />

535<br />

Figure 18.5<br />

ActionDispatch::BestStandardsSupport<br />

request

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!