What is the best guide for Rails routes for completely confusing?

I am learning Rails, but routes continue to confuse me with me.

What makes it the most confusing, I think, is that the routes you specify are sensitive to where they are defined in your file routes.rbrelative to other routes.

Does anyone know a good guide that sums it up well?

+5
source share
6 answers

, The Rails Way . , , , Rails, . . .

+5
+9

:

. , - (, , ), .

+3

, rails, , , config/routes.rb.

$rake routes

, , config/routes.rb. , , , new_model1_model2_path(@model1).

+3
0

All Articles