There's no documentation for this item.
# File action_controller/routing/routing_ext.rb, line 39 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.