Ruby on Rails
Routes (Version #179)

‘Routing’ is a pure-Ruby mod_rewrite-alike that can map URLs to controller/action/params and back. It was added to Rails to make pretty URLs more configurable and to divorce us from the mod_rewrite requirement.

Routes are individual rules that map matching URLs to specific controllers and actions. They are configured in the config/routes.rb file.

For more information see this short book about Rails Routes.

See also Named Routes

Is it possible to get a better and more canonical explanation of routes than this document provides? It is frustrating because this document is outside the wiki, and also because the API references this document so it really needs to be more comprehensive than I feel it is at present. Is there somewhere else I should be asking for this help? -raymond

Examples

These bulleted links are all broken.

category: Glossary

‘Routing’ is a pure-Ruby mod_rewrite-alike that can map URLs to controller/action/params and back. It was added to Rails to make pretty URLs more configurable and to divorce us from the mod_rewrite requirement.

Routes are individual rules that map matching URLs to specific controllers and actions. They are configured in the config/routes.rb file.

For more information see this short book about Rails Routes.

See also Named Routes

Is it possible to get a better and more canonical explanation of routes than this document provides? It is frustrating because this document is outside the wiki, and also because the API references this document so it really needs to be more comprehensive than I feel it is at present. Is there somewhere else I should be asking for this help? -raymond

Examples

These bulleted links are all broken.

category: Glossary