There's no documentation for this item.
# File action_controller/routing.rb, line 43 def unoptionalize(pattern) [/\A\(\?:(.*)\)\?\Z/, /\A(.|\(.*\))\?\Z/].each do |regexp| return $1 if regexp =~ pattern end return pattern end
<code/>
<pre/>
<code/>and<pre/>for code samples.