Permalink
Browse files

Adds missing closing regex slashes.

  • Loading branch information...
1 parent 0275946 commit 58b0d507d3749fca4350022fa8b509516a7b8cc1 @mjy mjy committed with vijaydev Oct 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -702,7 +702,7 @@ def namespace(path, options = {})
# Allows you to constrain the nested routes based on a set of rules.
# For instance, in order to change the routes to allow for a dot character in the +id+ parameter:
#
- # constraints(:id => /\d+\.\d+) do
+ # constraints(:id => /\d+\.\d+/) do
# resources :posts
# end
#
@@ -712,7 +712,7 @@ def namespace(path, options = {})
# You may use this to also restrict other parameters:
#
# resources :posts do
- # constraints(:post_id => /\d+\.\d+) do
+ # constraints(:post_id => /\d+\.\d+/) do
# resources :comments
# end
# end

0 comments on commit 58b0d50

Please sign in to comment.