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
committerXavier Noria <fxn@hashref.com>2010-04-09 04:45:02 -0700
commit4f0982db91f4e67b36aec7f1e7445655e7bce8ce (patch)
tree638141f5a28395617296a86ac52b4dca3aca600c /railties/guides/source/testing.textile
parent42d3764b3ddc67ac5818deff06b7dfbcdd95e834 (diff)
downloadrails-4f0982db91f4e67b36aec7f1e7445655e7bce8ce.tar.gz
rails-4f0982db91f4e67b36aec7f1e7445655e7bce8ce.tar.bz2
rails-4f0982db91f4e67b36aec7f1e7445655e7bce8ce.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) %>