instance method
match_extraction
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
match_extraction(next_capture)
the value should not include the period (.)
Parameters
-
next_capturereq
Source
# File actionpack/lib/action_controller/routing/segments.rb, line 333
def match_extraction(next_capture)
%[
if (m = match[#{next_capture}])
params[:#{key}] = URI.unescape(m.from(1))
end
]
end
Defined in actionpack/lib/action_controller/routing/segments.rb line 333
· View on GitHub
· Improve this page
· Find usages on GitHub