aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/testing.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/testing.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/testing.textile')
-rw-r--r--railties/guides/source/testing.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/testing.textile b/railties/guides/source/testing.textile
index b291b541ba..6e25515fed 100644
--- a/railties/guides/source/testing.textile
+++ b/railties/guides/source/testing.textile
@@ -84,7 +84,7 @@ h5. ERb'in It Up
ERb allows you embed ruby code within templates. Both the YAML and CSV fixture formats are pre-processed with ERb when you load fixtures. This allows you to use Ruby to help you generate some sample data.
<erb>
-<% earth_size = 20 -%>
+<% earth_size = 20 %>
mercury:
size: <%= earth_size / 50 %>
brightest_on: <%= 113.days.ago.to_s(:db) %>