aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2014-08-15 16:00:52 +0200
committerZachary Scott <e@zzak.io>2014-08-22 00:50:00 -0700
commit95b78248eb9b4a89869de6ac4602ef52127980a4 (patch)
tree9a2e97342ced4f7b5c4ca449c5fbee62fbc62e5b /guides/source
parent777c39c41c956ac8f5dfbc35aa0ec852a8cf447f (diff)
downloadrails-95b78248eb9b4a89869de6ac4602ef52127980a4.tar.gz
rails-95b78248eb9b4a89869de6ac4602ef52127980a4.tar.bz2
rails-95b78248eb9b4a89869de6ac4602ef52127980a4.zip
Follow up on #16408
[skip ci]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/generators.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/guides/source/generators.md b/guides/source/generators.md
index 2b39ea66d8..f5d2c67cb4 100644
--- a/guides/source/generators.md
+++ b/guides/source/generators.md
@@ -341,13 +341,17 @@ end
If you generate another resource, you can see that we get exactly the same result! This is useful if you want to customize your scaffold templates and/or layout by just creating `edit.html.erb`, `index.html.erb` and so on inside `lib/templates/erb/scaffold`.
-Many scaffold templates in Rails are written in ERB tags which need to be escaped, so that the output is valid ERB code. For example,
+Scaffold templates in Rails frequently use ERB tags; these tags need to be
+escaped so that the generated output is valid ERB code.
+
+For example, the following escaped ERB tag would be needed in the template
+(note the extra `%`)...
```ruby
<%%= stylesheet_include_tag :application %>
```
-when passed through the generator, would generate the following output.
+...to generate the following output:
```ruby
<%= stylesheet_include_tag :application %>