Skip to content

Tech Doc: App Routes

Luis Ramos edited this page Feb 11, 2019 · 1 revision

This page lists all the sources of routes in the OFN app.

You can see the full list by running ´rake routes´

Routes

In OFN:

In the core routes above you can see that spree and web engines are included in ofn routes

That includes the web engine routes engines/web/config/routes.rb

And all the spree routes files:

Additionally, devise also gets included with its routes (authentication related routes):

To understand how rails routes work you can read this guide: https://guides.rubyonrails.org/v3.2.8/routing.html

A very important point is "2.2 CRUD, Verbs, and Actions" where you can see how one entry in routes can generate 7 different routes.

Happy navigations!

Clone this wiki locally