aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/generators.textile
diff options
context:
space:
mode:
Diffstat (limited to 'guides/source/generators.textile')
-rw-r--r--guides/source/generators.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/generators.textile b/guides/source/generators.textile
index ec5f53870e..e9d713d91d 100644
--- a/guides/source/generators.textile
+++ b/guides/source/generators.textile
@@ -467,7 +467,7 @@ h4. +gsub_file+
Replaces text inside a file.
<ruby>
- gsub_file 'name_of_file.rb', 'method.to_be_replaced', 'method.the_replacing_code'
+gsub_file 'name_of_file.rb', 'method.to_be_replaced', 'method.the_replacing_code'
</ruby
Regular Expressions can be used to make this method more precise. You can also use append_file and prepend_file in the same way to place code at the beginning and end of a file respectively.