    # File lib/merb-core/dispatch/router.rb, line 221
          def url(name, *args)
            if name.is_a?(Route)
              route = name
            else
              unless name.is_a?(Symbol)
                args.unshift(name)
                name = :default
              end

              unless route = Merb::Router.named_routes[name]
                raise Merb::Router::GenerationError, "Named route not found: #{name}"
              end
            end

            defaults = args.pop

            route.generate(args, defaults)
          end