Browse files

correct typos in Routing examples

  • Loading branch information...
1 parent d1037a4 commit bcec0f6528839616cad09374f77014a3969eb63b @mislav mislav committed Jul 19, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_dispatch/routing.rb
View
6 actionpack/lib/action_dispatch/routing.rb
@@ -106,21 +106,21 @@ 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})?/
# }
#
# Constraints can include the 'ignorecase' and 'extended syntax' regular
# 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

0 comments on commit bcec0f6

Please sign in to comment.