mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Copy Edit
This commit is contained in:
parent
4179141a01
commit
7f04235e52
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue