slice_url (Merb::Slices::Support)

    # File lib/merb-slices/controller_mixin.rb, line 25
          def slice_url(slice_name, *args)
            opts = args.last.is_a?(Hash) ? args.pop : {}
            route_name = args[0].is_a?(Symbol) ? args.shift : :default

            routes = Merb::Slices.named_routes[slice_name]
            unless routes && route = routes[route_name]
              raise Merb::Router::GenerationError, "Named route not found: #{route_name}"
            end

            args.push(opts)
            route.generate(args, params)
          end