diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-25 18:30:21 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-04-25 18:30:21 +0530 |
commit | 8189536aeb91394ccc649b9c14f0cf15c25b9423 (patch) | |
tree | 4615bc45fa0bb5bf2fb189c8da3adc98e79eef9d /guides/source/generators.textile | |
parent | 9e962ffd9adad16d7255fc1f37a9b3cfeecbaa9a (diff) | |
download | rails-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.textile | 2 |
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. |