Class

Mapper

Extends:

Includes:

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_missing
named_route
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.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.