diff options
author | mjy <diapriid@gmail.com> | 2011-10-25 15:08:28 -0400 |
---|---|---|
committer | mjy <diapriid@gmail.com> | 2011-10-25 15:08:28 -0400 |
commit | e368583ba716f90120e7e6ccfc5ee76de015521c (patch) | |
tree | 19e1d2085f5f9f3a59b130df73263efb26d1adc1 /actionpack/lib/action_dispatch/routing/mapper.rb | |
parent | a7641054d80a285c5da85d80b8678d899c27cd1a (diff) | |
download | rails-e368583ba716f90120e7e6ccfc5ee76de015521c.tar.gz rails-e368583ba716f90120e7e6ccfc5ee76de015521c.tar.bz2 rails-e368583ba716f90120e7e6ccfc5ee76de015521c.zip |
Adds missing closing regex slashes.
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/mapper.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index ef31d1e004..09a8c10043 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -696,7 +696,7 @@ module ActionDispatch # 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 @@ module ActionDispatch # 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 |