Ticket #8377: regular_expressions_routes_documentation_fix.diff
| File regular_expressions_routes_documentation_fix.diff, 0.8 kB (added by norbert, 2 years ago) |
|---|
-
actionpack/lib/action_controller/routing.rb
old new 188 188 # map.geocode 'geocode/:postalcode', :controller => 'geocode', 189 189 # :action => 'show', :postalcode => /\d{5}(-\d{4})?/ 190 190 # 191 # or more formally:191 # or, more formally: 192 192 # 193 193 # map.geocode 'geocode/:postalcode', :controller => 'geocode', 194 # :action => 'show', 195 # :requirements { :postalcode => /\d{5}(-\d{4})?/ } 194 # :action => 'show', :requirements => { :postalcode => /\d{5}(-\d{4})?/ } 196 195 # 197 196 # == Route globbing 198 197 #