Permalink
Browse files

Merge pull request #7479 from eriko/master

the example for contraint( :ip => XXXX) has an invalid regex
  • Loading branch information...
2 parents c0b6963 + 341f42b commit d659406e24608973b02f21e14a140d12b3acc05a @fxn fxn committed Aug 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -757,7 +757,7 @@ def namespace(path, options = {})
#
# Routes can also be constrained to an IP or a certain range of IP addresses:
#
- # constraints(:ip => /192.168.\d+.\d+/) do
+ # constraints(:ip => /192\.168\.\d+\.\d+/) do
# resources :posts
# end
#

0 comments on commit d659406

Please sign in to comment.