Permalink
Browse files

Copy Edit

  • Loading branch information...
1 parent 4179141 commit 7f04235e523253bcf0a7d58d9f9bb61313a83337 @jstrocel jstrocel committed Apr 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/generators.textile
@@ -468,7 +468,7 @@ Replaces text inside a file.
<ruby>
gsub_file 'name_of_file.rb', 'method.to_be_replaced', 'method.the_replacing_code'
-</ruby
+</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.

0 comments on commit 7f04235

Please sign in to comment.