aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/generators.textile
diff options
context:
space:
mode:
authorOscar Del Ben <info@oscardelben.com>2012-04-25 15:43:29 +0200
committerOscar Del Ben <info@oscardelben.com>2012-04-25 15:43:29 +0200
commit4179141a012c84afa4756aa565aca3a07e4693fa (patch)
treebaf0a7c97fda49455408ee86b73272911acd14f8 /guides/source/generators.textile
parentee4e7125a61c703332a8d591a0aee917ba828e62 (diff)
parent4a3ce153f1e05c9c590e9ee74e818649336d929f (diff)
downloadrails-4179141a012c84afa4756aa565aca3a07e4693fa.tar.gz
rails-4179141a012c84afa4756aa565aca3a07e4693fa.tar.bz2
rails-4179141a012c84afa4756aa565aca3a07e4693fa.zip
Merge branch 'master' of github.com:lifo/docrails
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.