© Stefan Wintermeyer 2018
Stefan WintermeyerLearn Rails 5.2https://doi.org/10.1007/978-1-4842-3489-1_5

5. Routes

Stefan Wintermeyer1 
(1)
Bochum, Germany
 

In Chapters 2 and 4, you learned about routes. The configuration in config/routes.rb defines what happens in the Rails application when a user of a Rails application fetches a URL. A route can be static or dynamic and pass any dynamic values with variables to the controller. If several routes apply to the same URL, the one that is listed at the top of config/routes.rb wins.

../images/460214_1_En_5_Chapter/460214_1_En_5_Figa_HTML.gif If you do not have much time, you can skip this chapter for now and come back to it later if you have any specific questions. ...

Get Learn Rails 5.2: Accelerated Web Development with Ruby on Rails now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.