mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
correct typos in Routing examples
This commit is contained in:
parent
aa2235be7b
commit
efdfcf1325
1 changed files with 3 additions and 3 deletions
|
@ -105,7 +105,7 @@ module ActionDispatch
|
||||||
# You can specify a regular expression to define a format for a parameter.
|
# You can specify a regular expression to define a format for a parameter.
|
||||||
#
|
#
|
||||||
# controller 'geocode' do
|
# controller 'geocode' do
|
||||||
# match 'geocode/:postalcode' => :show', :constraints => {
|
# match 'geocode/:postalcode' => :show, :constraints => {
|
||||||
# :postalcode => /\d{5}(-\d{4})?/
|
# :postalcode => /\d{5}(-\d{4})?/
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
|
@ -113,13 +113,13 @@ module ActionDispatch
|
||||||
# expression modifiers:
|
# expression modifiers:
|
||||||
#
|
#
|
||||||
# controller 'geocode' do
|
# controller 'geocode' do
|
||||||
# match 'geocode/:postalcode' => :show', :constraints => {
|
# match 'geocode/:postalcode' => :show, :constraints => {
|
||||||
# :postalcode => /hx\d\d\s\d[a-z]{2}/i
|
# :postalcode => /hx\d\d\s\d[a-z]{2}/i
|
||||||
# }
|
# }
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# controller 'geocode' do
|
# controller 'geocode' do
|
||||||
# match 'geocode/:postalcode' => :show', :constraints => {
|
# match 'geocode/:postalcode' => :show, :constraints => {
|
||||||
# :postalcode => /# Postcode format
|
# :postalcode => /# Postcode format
|
||||||
# \d{5} #Prefix
|
# \d{5} #Prefix
|
||||||
# (-\d{4})? #Suffix
|
# (-\d{4})? #Suffix
|
||||||
|
|
Loading…
Reference in a new issue