Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #7479 from eriko/master

the example for contraint( :ip => XXXX) has an invalid regex
  • Loading branch information...
commit d659406e24608973b02f21e14a140d12b3acc05a 2 parents c0b6963 + 341f42b
@fxn fxn authored
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
#
Please sign in to comment.
Something went wrong with that request. Please try again.