Skip to content
Browse files

Update actionpack/lib/action_dispatch/routing/mapper.rb

escape the '.'s  
  • Loading branch information...
1 parent ed5c938 commit 341f42b076aef74579c7b79d3cb91e5bd1315a8b @eriko eriko committed Aug 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/routing/mapper.rb
View
2 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 341f42b

Please sign in to comment.
Something went wrong with that request. Please try again.