diff options
author | kennyj <kennyj@gmail.com> | 2012-06-06 00:59:01 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-06-16 00:22:16 +0900 |
commit | c42a7a0082a16b47b6bb6d1b919a4b5ec6e7860d (patch) | |
tree | 2daff0c583cedf45ef5d8dc7da23ac8582147c63 /guides/source/routing.textile | |
parent | c1b1956a15d3d38d0a4504e168bb69638d71e536 (diff) | |
download | rails-c42a7a0082a16b47b6bb6d1b919a4b5ec6e7860d.tar.gz rails-c42a7a0082a16b47b6bb6d1b919a4b5ec6e7860d.tar.bz2 rails-c42a7a0082a16b47b6bb6d1b919a4b5ec6e7860d.zip |
Support unicode character route in config/routes.rb.
Diffstat (limited to 'guides/source/routing.textile')
-rw-r--r-- | guides/source/routing.textile | 8 |
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. |