How it works
It can either do just named routes or both named and dynamic ones (from controller/action).
This is controlled by setting :lite to true or false.
# Add this to bootup (say in bottom of environment.rb or a config/initializer):
# Generate routes now...
# Namespaced works...
map.namespace(:ship) do |ship|
In your js (after including routes.js)
// Urls for a new booking
// Url to edit booking with id 23
// Namespaced under 'ship'
// Editing url for reservation 1