instance method
connect
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
connect(path, options = {})
Create an unnamed route with the provided path and options. See ActionController::Routing for an introduction to routes.
Parameters
-
pathreq -
optionsopt = {}
Source
# File actionpack/lib/action_controller/routing/route_set.rb, line 16
def connect(path, options = {})
@set.add_route(path, options)
end
Defined in actionpack/lib/action_controller/routing/route_set.rb line 16
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Routing::RouteSet::Mapper