ルーティング:
どの要求を受けたら、どのコントローラを呼び出すかを決めている場所。
①リクエスト=GET/books/2
↓
②パスの解析&ルート定義の検索
サーバー(アプリ)
routes.rb
↓
③ルート定義に基づいてアクションを呼び出し
config/routes.rbに定義する。
routes.rb
match ':controller(/:action(/id(.:format)))'
:controller=books/hello/blog/etc...
:action=index/show/
:id=108等のid番号
:format=xml/html/etc
Railsにおいて名前はすべてを紐づける鍵!