Build the regular expression pattern that will match this route.
Source Code
# File action_controller/routing/route.rb, line 100 def recognition_pattern(wrap = true) pattern = '' segments.reverse_each do |segment| pattern = segment.build_pattern pattern end wrap ? ("\\A" + pattern + "\\Z") : pattern end
<code/>and<pre/>for code samples.