From 5be94cedce3f80923661a2f1fee02c9bfc2e95b2 Mon Sep 17 00:00:00 2001 From: Patrick Davey Date: Tue, 31 Jan 2012 13:25:34 +1300 Subject: fixing text to match what is being displayed --- railties/guides/source/layouts_and_rendering.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/guides/source/layouts_and_rendering.textile') diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile index 5cff2d0893..d010234e78 100644 --- a/railties/guides/source/layouts_and_rendering.textile +++ b/railties/guides/source/layouts_and_rendering.textile @@ -1086,7 +1086,7 @@ You can also pass local variables into partials, making them even more powerful <% end %> -Although the same partial will be rendered into both views, Action View's submit helper will return "Create Zone" for the new action and "Update Zone" for the edit action. +Although the same partial will be rendered into both views, Action View's submit helper will return "New zone" for the new action and "Editing zone" for the edit action. Every partial also has a local variable with the same name as the partial (minus the underscore). You can pass an object in to this local variable via the +:object+ option: -- cgit v1.2.3