Skip to content

Commit

Permalink
Revert "fixing text to match what is being displayed"
Browse files Browse the repository at this point in the history
This reverts commit 5be94ce.

Reason: This commit is incorrect.
  • Loading branch information
vijaydev committed Feb 1, 2012
1 parent c6d880f commit d566fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/layouts_and_rendering.textile
Expand Up @@ -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:

Expand Down

0 comments on commit d566fa7

Please sign in to comment.