aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-04-19 21:43:17 +0200
committerXavier Noria <fxn@hashref.com>2011-04-19 21:43:17 +0200
commitad602869260b4233f7471f8aa467d3b83ffeb801 (patch)
treed70c84f636f87677337a307ea22d32f77410e66f
parent5fee98adf8ce515a98ddd7d7833ab9d730489bad (diff)
downloadrails-ad602869260b4233f7471f8aa467d3b83ffeb801.tar.gz
rails-ad602869260b4233f7471f8aa467d3b83ffeb801.tar.bz2
rails-ad602869260b4233f7471f8aa467d3b83ffeb801.zip
Revert "Better formatting"
No need to change this formatting. This reverts commit 9c861e8a0e2f21959ede5f71b56f8a50996d6416.
-rw-r--r--railties/guides/source/action_view_overview.textile6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/action_view_overview.textile b/railties/guides/source/action_view_overview.textile
index e11cb00d9f..172932fdab 100644
--- a/railties/guides/source/action_view_overview.textile
+++ b/railties/guides/source/action_view_overview.textile
@@ -227,13 +227,13 @@ To render a partial as part of a view, you use the +render+ method within the vi
<%= render "menu" %>
</ruby>
-This will render a file named <tt>_menu.html.erb</tt> at that point within the view is being rendered. Note the leading underscore character: partials are named with a leading underscore to distinguish them from regular views, even though they are referred to without the underscore. This holds true even when you're pulling in a partial from another folder:
+This will render a file named +_menu.html.erb+ at that point within the view is being rendered. Note the leading underscore character: partials are named with a leading underscore to distinguish them from regular views, even though they are referred to without the underscore. This holds true even when you're pulling in a partial from another folder:
<ruby>
<%= render "shared/menu" %>
</ruby>
-That code will pull in the partial from <tt>app/views/shared/_menu.html.erb</tt>.
+That code will pull in the partial from +app/views/shared/_menu.html.erb+.
h5. Using Partials to Simplify Views
@@ -252,7 +252,7 @@ One way to use partials is to treat them as the equivalent of subroutines: as a
<%= render "shared/footer" %>
</erb>
-Here, the <tt>_ad_banner.html.erb</tt> and <tt>_footer.html.erb</tt> partials could contain content that is shared among many pages in your application. You don't need to see the details of these sections when you're concentrating on a particular page.
+Here, the +_ad_banner.html.erb+ and +_footer.html.erb+ partials could contain content that is shared among many pages in your application. You don't need to see the details of these sections when you're concentrating on a particular page.
h5. The :as and :object options