diff options
author | Mislav Marohnić <mislav.marohnic@gmail.com> | 2010-07-19 12:06:19 +0200 |
---|---|---|
committer | Mislav Marohnić <mislav.marohnic@gmail.com> | 2010-07-19 14:01:32 +0200 |
commit | bcec0f6528839616cad09374f77014a3969eb63b (patch) | |
tree | e170303e3a6fac309869e8bf5ab8a733db6d9083 | |
parent | d1037a473b2099b0a96a0b2aad26f33747da49f8 (diff) | |
download | rails-bcec0f6528839616cad09374f77014a3969eb63b.tar.gz rails-bcec0f6528839616cad09374f77014a3969eb63b.tar.bz2 rails-bcec0f6528839616cad09374f77014a3969eb63b.zip |
correct typos in Routing examples
-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 da62b14f9b..8afc685fdf 100644 --- a/actionpack/lib/action_dispatch/routing.rb +++ b/actionpack/lib/action_dispatch/routing.rb @@ -106,7 +106,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})?/ # } # @@ -114,13 +114,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 |