Method: Merb::Router::Behavior#match!
- Defined in:
- lib/merb-core/dispatch/router/behavior.rb
#match!(path = '', conditions = {}, &block) ⇒ Object
Combines common case of match being used with to({}).
Returns
- <Route>
-
route that uses params from named path segments.
Examples
r.match!(“/api/:token/:controller/:action/:id”)
is the same thing as
r.match!(“/api/:token/:controller/:action/:id”).to({})
214 215 216 |
# File 'lib/merb-core/dispatch/router/behavior.rb', line 214 def match!(path = '', conditions = {}, &block) self.match(path, conditions, &block).to({}) end |