Write the code to extract the parameters from a matched route.
Source Code
# File action_controller/routing/route.rb, line 109 def recognition_extraction next_capture = 1 extraction = segments.collect do |segment| x = segment.match_extraction(next_capture) next_capture += Regexp.new(segment.regexp_chunk).number_of_captures x end extraction.compact end
<code/>and<pre/>for code samples.