Permalink
Browse files

Adds missing closing regex slashes.

  • Loading branch information...
1 parent a764105 commit e368583ba716f90120e7e6ccfc5ee76de015521c @mjy mjy committed Oct 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -696,7 +696,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
#
@@ -706,7 +706,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 e368583

Please sign in to comment.