aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorMislav Marohnić <mislav.marohnic@gmail.com>2010-07-19 12:06:19 +0200
committerXavier Noria <fxn@hashref.com>2010-07-22 01:28:30 +0200
commitefdfcf13257769cf2d6f9ad85c8538e64007d97b (patch)
treeed6892da1f1d8d618944a8cecc162c2e7806b6ec /actionpack
parentaa2235be7bad43fcd5c314b76811d736b4084c93 (diff)
downloadrails-efdfcf13257769cf2d6f9ad85c8538e64007d97b.tar.gz
rails-efdfcf13257769cf2d6f9ad85c8538e64007d97b.tar.bz2
rails-efdfcf13257769cf2d6f9ad85c8538e64007d97b.zip
correct typos in Routing examples
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing.rb6
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