aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/routing.textile
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-06-15 09:14:19 -0700
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-06-15 09:14:19 -0700
commit9abe0980a60d113caf1115eddcc41e2a2446eff1 (patch)
tree2daff0c583cedf45ef5d8dc7da23ac8582147c63 /guides/source/routing.textile
parentc1b1956a15d3d38d0a4504e168bb69638d71e536 (diff)
parentc42a7a0082a16b47b6bb6d1b919a4b5ec6e7860d (diff)
downloadrails-9abe0980a60d113caf1115eddcc41e2a2446eff1.tar.gz
rails-9abe0980a60d113caf1115eddcc41e2a2446eff1.tar.bz2
rails-9abe0980a60d113caf1115eddcc41e2a2446eff1.zip
Merge pull request #6646 from kennyj/fix_3470
Support unicode character route directly in config/routes.rb. Fix #3470.
Diffstat (limited to 'guides/source/routing.textile')
-rw-r--r--guides/source/routing.textile8
1 files changed, 8 insertions, 0 deletions
diff --git a/guides/source/routing.textile b/guides/source/routing.textile
index 7941e655bb..dae25853cd 100644
--- a/guides/source/routing.textile
+++ b/guides/source/routing.textile
@@ -644,6 +644,14 @@ You should put the +root+ route at the top of the file, because it is the most p
NOTE: The +root+ route only routes +GET+ requests to the action.
+h4. Unicode character routes
+
+You can specify unicode character routes directly. For example
+
+<ruby>
+match 'こんにちは' => 'welcome#index'
+</ruby>
+
h3. Customizing Resourceful Routes
While the default routes and helpers generated by +resources :posts+ will usually serve you well, you may want to customize them in some way. Rails allows you to customize virtually any generic part of the resourceful helpers.