Mapper instances are used to build routes. The object passed to the draw block in config/routes.rb is a Mapper instance.
Mapper instances have relatively few instance methods, in order to avoid clashes with named routes.
| Public Methods | |
|---|---|
| connect | Create an unnamed route with the provided path and options. See ActionController::Routing for an introduction to routes. |
| method_ |
|
| named_ |
|
| namespace | Enables the use of resources in a module by setting the name_prefix, path_prefix, and namespace for the model. Example: |
| new | |
| root | Creates a named route called "root" for matching the root level request. |
<code/>and<pre/>for code samples.