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.
routes.rb
Does anyone know a good guide that sums it up well?
, The Rails Way . , , , Rails, . . .
Google " Rails" - Rails Routing from the Outside In, .
:
. , - (, , ), .
, rails, , , config/routes.rb.
config/routes.rb
$rake routes
, , config/routes.rb. , , , new_model1_model2_path(@model1).
new_model1_model2_path(@model1)
http://guides.rubyonrails.org - , !
rubyonrails.org. , ..