aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/layouts_and_rendering.textile
diff options
context:
space:
mode:
authorJames Miller <james@jk-tech.com>2010-04-06 16:52:39 -0700
committerJames Miller <james@jk-tech.com>2010-04-06 16:52:39 -0700
commitb52b36e680713b04a541c4bf989a692975099e6c (patch)
treec3f9a1d3b07cca41d168945fc127719673e30895 /railties/guides/source/layouts_and_rendering.textile
parentbeca1af820fab74a6ea26cb906d6c5e0116b7f8c (diff)
downloadrails-b52b36e680713b04a541c4bf989a692975099e6c.tar.gz
rails-b52b36e680713b04a541c4bf989a692975099e6c.tar.bz2
rails-b52b36e680713b04a541c4bf989a692975099e6c.zip
More on the new ERB syntax in the guides
Diffstat (limited to 'railties/guides/source/layouts_and_rendering.textile')
-rw-r--r--railties/guides/source/layouts_and_rendering.textile6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile
index fad687466e..92b36ab3e4 100644
--- a/railties/guides/source/layouts_and_rendering.textile
+++ b/railties/guides/source/layouts_and_rendering.textile
@@ -1037,7 +1037,7 @@ You can also pass local variables into partials, making them even more powerful
* +_form.html.erb+
<erb>
-<% form_for(zone) do |f| %>
+<%= form_for(zone) do |f| %>
<p>
<b>Zone name</b><br />
<%= f.text_field :name %>
@@ -1181,11 +1181,11 @@ On pages generated by +NewsController+, you want to hide the top menu and add a
<% content_for :stylesheets do %>
#top_menu {display: none}
#right_menu {float: right; background-color: yellow; color: black}
-<% end -%>
+<% end %>
<% content_for :content do %>
<div id="right_menu">Right menu items here</div>
<%= yield(:news_content) or yield %>
-<% end -%>
+<% end %>
<%= render :file => 'layouts/application' %>
</erb>