aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/generators.textile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-04-25 18:30:21 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-04-25 18:30:21 +0530
commit8189536aeb91394ccc649b9c14f0cf15c25b9423 (patch)
tree4615bc45fa0bb5bf2fb189c8da3adc98e79eef9d /guides/source/generators.textile
parent9e962ffd9adad16d7255fc1f37a9b3cfeecbaa9a (diff)
downloadrails-8189536aeb91394ccc649b9c14f0cf15c25b9423.tar.gz
rails-8189536aeb91394ccc649b9c14f0cf15c25b9423.tar.bz2
rails-8189536aeb91394ccc649b9c14f0cf15c25b9423.zip
copy edits [ci skip]
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.