aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-12-11 01:50:21 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-12-11 01:50:21 -0200
commitc780cf2f024528da80c3b01a49ba9423add2e783 (patch)
treeec603217b2d79db9af311260d1b64c3c5de5fde1 /railties
parent9094cd2600ee0b4f6523dbb80a5fa9e43c81e0c0 (diff)
downloadrails-c780cf2f024528da80c3b01a49ba9423add2e783.tar.gz
rails-c780cf2f024528da80c3b01a49ba9423add2e783.tar.bz2
rails-c780cf2f024528da80c3b01a49ba9423add2e783.zip
Add named helper output to translated paths example
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/routing.textile16
1 files changed, 8 insertions, 8 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile
index bc38e4a6e5..9dad6d3096 100644
--- a/railties/guides/source/routing.textile
+++ b/railties/guides/source/routing.textile
@@ -745,14 +745,14 @@ end
Rails now creates routes to the +CategoriesController+.
-|_.HTTP verb|_.Path |_.action |
-|GET |/kategorien |index |
-|GET |/kategorien/neu |new |
-|POST |/kategorien |create |
-|GET |/kategorien/1 |show |
-|GET |/kategorien/:id/bearbeiten |edit |
-|PUT |/kategorien/1 |update |
-|DELETE |/kategorien/1 |destroy |
+|_.HTTP verb|_.Path |_.action | .named helper |
+|GET |/kategorien |index | categories_path |
+|GET |/kategorien/neu |new | new_category_path |
+|POST |/kategorien |create | categories_path |
+|GET |/kategorien/1 |show | category_path |
+|GET |/kategorien/:id/bearbeiten |edit | edit_category_path |
+|PUT |/kategorien/1 |update | category_path |
+|DELETE |/kategorien/1 |destroy | category_path |
h4. Overriding the Singular Form