main.rb

Path: lib/proto/controller/main.rb
Last Update: Tue Jul 31 22:44:34 +0000 2012

Default url mappings are:

  • a controller called Main is mapped on the root of the site: /
  • a controller called Something is mapped on: /something

If you want to override this, add a line like this inside the class:

 map '/otherurl'

this will force the controller to be mounted on: /otherurl.

[Validate]