instance method match

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

match(*args)

No documentation comment.

Parameters

args rest
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1353
        def match(*args)
          if args.size == 1 && args.last.is_a?(Hash)
            options  = args.pop
            path, to = options.find { |name, value| name.is_a?(String) }
            options.merge!(:to => to).delete(path)
            super(path, options)
          else
            super
          end
        end

Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1353 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Routing::Mapper::Shorthand

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close