slice_url (Merb::Slices::ControllerMixin::MixinMethods::InstanceMethods)

    # File lib/merb-slices/controller_mixin.rb, line 141
              def slice_url(*args)
                opts = args.last.is_a?(Hash) ? args.pop : {}
                slice_name, route_name = if args[0].is_a?(Symbol) && args[1].is_a?(Symbol)
                  [args.shift, args.shift] # other slice identifier, route name
                elsif args[0].is_a?(Symbol)
                  [slice.identifier_sym, args.shift] # self, route name
                else
                  [slice.identifier_sym, :default] # self, default route
                end

                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