diff options
author | Mislav Marohnić <mislav.marohnic@gmail.com> | 2010-07-19 12:06:19 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-07-22 01:28:30 +0200 |
commit | efdfcf13257769cf2d6f9ad85c8538e64007d97b (patch) | |
tree | ed6892da1f1d8d618944a8cecc162c2e7806b6ec /actionpack/lib | |
parent | aa2235be7bad43fcd5c314b76811d736b4084c93 (diff) | |
download | rails-efdfcf13257769cf2d6f9ad85c8538e64007d97b.tar.gz rails-efdfcf13257769cf2d6f9ad85c8538e64007d97b.tar.bz2 rails-efdfcf13257769cf2d6f9ad85c8538e64007d97b.zip |
correct typos in Routing examples
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing.rb b/actionpack/lib/action_dispatch/routing.rb index b7e09b99d1..683dd72555 100644 --- a/actionpack/lib/action_dispatch/routing.rb +++ b/actionpack/lib/action_dispatch/routing.rb @@ -105,7 +105,7 @@ module ActionDispatch # You can specify a regular expression to define a format for a parameter. # # controller 'geocode' do - # match 'geocode/:postalcode' => :show', :constraints => { + # match 'geocode/:postalcode' => :show, :constraints => { # :postalcode => /\d{5}(-\d{4})?/ # } # @@ -113,13 +113,13 @@ module ActionDispatch # expression modifiers: # # controller 'geocode' do - # match 'geocode/:postalcode' => :show', :constraints => { + # match 'geocode/:postalcode' => :show, :constraints => { # :postalcode => /hx\d\d\s\d[a-z]{2}/i # } # end # # controller 'geocode' do - # match 'geocode/:postalcode' => :show', :constraints => { + # match 'geocode/:postalcode' => :show, :constraints => { # :postalcode => /# Postcode format # \d{5} #Prefix # (-\d{4})? #Suffix |