diff options
| author | Jonathan Roes <jroes@jroes.net> | 2013-04-19 23:44:52 -0300 |
|---|---|---|
| committer | Jonathan Roes <jroes@jroes.net> | 2013-04-19 23:44:52 -0300 |
| commit | 385edec24d45e35191aba474d2a740f6f38313c0 (patch) | |
| tree | 2e3fd618fe27df15106a95af6b23bf0593a0452b | |
| parent | 615a2cb0f66ac15bc24a000027262c4b2f4d86ac (diff) | |
| download | rails-385edec24d45e35191aba474d2a740f6f38313c0.tar.gz rails-385edec24d45e35191aba474d2a740f6f38313c0.tar.bz2 rails-385edec24d45e35191aba474d2a740f6f38313c0.zip | |
Simplify ERB example code
| -rw-r--r-- | guides/source/testing.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index b655bb2307..cab13751f0 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -85,8 +85,8 @@ ERB allows you to embed Ruby code within templates. The YAML fixture format is p ```erb <% 1000.times do |n| %> user_<%= n %>: - username: <%= "user%03d" % n %> - email: <%= "user%03d@example.com" % n %> + username: <%= "user#{n}" %> + email: <%= "user#{n}@example.com" %> <% end %> ``` |
