diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-02-01 22:18:36 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-02-01 22:18:36 +0530 |
commit | d566fa7721e0fdb46acda282a8d34a4cba8aea3b (patch) | |
tree | b031a019104d3cfdc772a543cb974e6b85474c09 /railties | |
parent | c6d880f48d133ff287677a67e8fb881b8bcbfaf3 (diff) | |
download | rails-d566fa7721e0fdb46acda282a8d34a4cba8aea3b.tar.gz rails-d566fa7721e0fdb46acda282a8d34a4cba8aea3b.tar.bz2 rails-d566fa7721e0fdb46acda282a8d34a4cba8aea3b.zip |
Revert "fixing text to match what is being displayed"
This reverts commit 5be94cedce3f80923661a2f1fee02c9bfc2e95b2.
Reason: This commit is incorrect.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/layouts_and_rendering.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile index d010234e78..5cff2d0893 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 %> </erb> -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. +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. 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: |